All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:queue-4.19 82/115] drivers/pci//switch/switchtec.c:636:18: error: implicit declaration of function 'readq'
@ 2020-01-02 13:24 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-02 13:24 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.19
head:   f4c1e7929241424c54d103804ffa1483d687e1bb
commit: ed6c256c3df5d5e796cf2e6370079fa087e9dbc0 [82/115] PCI/switchtec: Read all 64 bits of part_event_bitmap
config: i386-randconfig-a001-20200102 (attached as .config)
compiler: gcc-6 (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
reproduce:
        git checkout ed6c256c3df5d5e796cf2e6370079fa087e9dbc0
        # save the attached .config to linux build tree
        make ARCH=i386 

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

All errors (new ones prefixed by >>):

   drivers/pci//switch/switchtec.c: In function 'ioctl_event_summary':
>> drivers/pci//switch/switchtec.c:636:18: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration]
     s.part_bitmap = readq(&stdev->mmio_sw_event->part_event_bitmap);
                     ^~~~~
   cc1: some warnings being treated as errors

vim +/readq +636 drivers/pci//switch/switchtec.c

   626	
   627	static int ioctl_event_summary(struct switchtec_dev *stdev,
   628		struct switchtec_user *stuser,
   629		struct switchtec_ioctl_event_summary __user *usum)
   630	{
   631		struct switchtec_ioctl_event_summary s = {0};
   632		int i;
   633		u32 reg;
   634	
   635		s.global = ioread32(&stdev->mmio_sw_event->global_summary);
 > 636		s.part_bitmap = readq(&stdev->mmio_sw_event->part_event_bitmap);
   637		s.local_part = ioread32(&stdev->mmio_part_cfg->part_event_summary);
   638	
   639		for (i = 0; i < stdev->partition_count; i++) {
   640			reg = ioread32(&stdev->mmio_part_cfg_all[i].part_event_summary);
   641			s.part[i] = reg;
   642		}
   643	
   644		for (i = 0; i < SWITCHTEC_MAX_PFF_CSR; i++) {
   645			reg = ioread16(&stdev->mmio_pff_csr[i].vendor_id);
   646			if (reg != PCI_VENDOR_ID_MICROSEMI)
   647				break;
   648	
   649			reg = ioread32(&stdev->mmio_pff_csr[i].pff_event_summary);
   650			s.pff[i] = reg;
   651		}
   652	
   653		if (copy_to_user(usum, &s, sizeof(s)))
   654			return -EFAULT;
   655	
   656		stuser->event_cnt = atomic_read(&stdev->event_cnt);
   657	
   658		return 0;
   659	}
   660	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

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

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

only message in thread, other threads:[~2020-01-02 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-02 13:24 [sashal-linux-stable:queue-4.19 82/115] drivers/pci//switch/switchtec.c:636:18: error: implicit declaration of function 'readq' kbuild 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.