All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [tglx-devel:x86/apic 15/33] drivers/pci/controller/vmd.c:133:30: error: expected ')'
Date: Sat, 24 Oct 2020 05:11:25 +0800	[thread overview]
Message-ID: <202010240522.VkyROnON-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3275 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/apic
head:   79dccf5adfcb84abb5644e4349234c4442803c9a
commit: 453d80ce643cc1e80fc67fed5b1eb2126263ec8d [15/33] PCI: vmd: Use msi_msg shadow structs
config: x86_64-randconfig-a005-20201022 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 147b9497e79a98a8614b2b5eb4ba653b44f6b6f0)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=453d80ce643cc1e80fc67fed5b1eb2126263ec8d
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel x86/apic
        git checkout 453d80ce643cc1e80fc67fed5b1eb2126263ec8d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

>> drivers/pci/controller/vmd.c:133:30: error: expected ')'
           memset(&msg, 0, sizeof(*msg);
                                       ^
   drivers/pci/controller/vmd.c:133:8: note: to match this '('
           memset(&msg, 0, sizeof(*msg);
                 ^
>> drivers/pci/controller/vmd.c:658:43: warning: shift count >= width of type [-Wshift-count-overflow]
           if (dma_set_mask_and_coherent(&dev->dev, DMA_BIT_MASK(64)) &&
                                                    ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   1 warning and 1 error generated.

vim +133 drivers/pci/controller/vmd.c

   118	
   119	/*
   120	 * Drivers managing a device in a VMD domain allocate their own IRQs as before,
   121	 * but the MSI entry for the hardware it's driving will be programmed with a
   122	 * destination ID for the VMD MSI-X table.  The VMD muxes interrupts in its
   123	 * domain into one of its own, and the VMD driver de-muxes these for the
   124	 * handlers sharing that VMD IRQ.  The vmd irq_domain provides the operations
   125	 * and irq_chip to set this up.
   126	 */
   127	static void vmd_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
   128	{
   129		struct vmd_irq *vmdirq = data->chip_data;
   130		struct vmd_irq_list *irq = vmdirq->irq;
   131		struct vmd_dev *vmd = irq_data_get_irq_handler_data(data);
   132	
 > 133		memset(&msg, 0, sizeof(*msg);
   134		msg->address_hi = X86_MSI_BASE_ADDRESS_HIGH;
   135		msg->arch_addr_lo.base_address = X86_MSI_BASE_ADDRESS_LOW;
   136		msg->arch_addr_lo.destid_0_7 = index_from_irqs(vmd, irq);
   137	}
   138	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35133 bytes --]

                 reply	other threads:[~2020-10-23 21:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202010240522.VkyROnON-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.