All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:x86/apic 15/33] drivers/pci/controller/vmd.c:133:30: error: expected ')' before '; ' token
@ 2020-10-23 18:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-23 18:38 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3144 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-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # 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
        make W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   drivers/pci/controller/vmd.c: In function 'vmd_compose_msi_msg':
>> drivers/pci/controller/vmd.c:133:30: error: expected ')' before ';' token
     133 |  memset(&msg, 0, sizeof(*msg);
         |                              ^
         |                              )
>> drivers/pci/controller/vmd.c:136:59: error: expected ';' before '}' token
     136 |  msg->arch_addr_lo.destid_0_7 = index_from_irqs(vmd, irq);
         |                                                           ^
         |                                                           ;
     137 | }
         | ~                                                          
   drivers/pci/controller/vmd.c:131:18: warning: unused variable 'vmd' [-Wunused-variable]
     131 |  struct vmd_dev *vmd = irq_data_get_irq_handler_data(data);
         |                  ^~~
   drivers/pci/controller/vmd.c:130:23: warning: unused variable 'irq' [-Wunused-variable]
     130 |  struct vmd_irq_list *irq = vmdirq->irq;
         |                       ^~~

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: 76855 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-23 18:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-23 18:38 [tglx-devel:x86/apic 15/33] drivers/pci/controller/vmd.c:133:30: error: expected ')' before '; ' token kernel test robot

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.