All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:queue-4.14 63/74] drivers/pci/switch/switchtec.c:901:18: error: implicit declaration of function 'readq'; did you mean 'readl'?
@ 2020-01-02  7:14 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-02  7:14 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.14
head:   d732fc2b4c49f2b5b731df21fba3db570bd7d9f4
commit: c0a7f0c0fb257e3b782f17ecc7647798fcdd9c88 [63/74] PCI/switchtec: Read all 64 bits of part_event_bitmap
config: xtensa-randconfig-a001-20200102 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout c0a7f0c0fb257e3b782f17ecc7647798fcdd9c88
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=xtensa 

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:901:18: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration]
     s.part_bitmap = readq(&stdev->mmio_sw_event->part_event_bitmap);
                     ^~~~~
                     readl
   cc1: some warnings being treated as errors

vim +901 drivers/pci/switch/switchtec.c

   891	
   892	static int ioctl_event_summary(struct switchtec_dev *stdev,
   893		struct switchtec_user *stuser,
   894		struct switchtec_ioctl_event_summary __user *usum)
   895	{
   896		struct switchtec_ioctl_event_summary s = {0};
   897		int i;
   898		u32 reg;
   899	
   900		s.global = ioread32(&stdev->mmio_sw_event->global_summary);
 > 901		s.part_bitmap = readq(&stdev->mmio_sw_event->part_event_bitmap);
   902		s.local_part = ioread32(&stdev->mmio_part_cfg->part_event_summary);
   903	
   904		for (i = 0; i < stdev->partition_count; i++) {
   905			reg = ioread32(&stdev->mmio_part_cfg_all[i].part_event_summary);
   906			s.part[i] = reg;
   907		}
   908	
   909		for (i = 0; i < SWITCHTEC_MAX_PFF_CSR; i++) {
   910			reg = ioread16(&stdev->mmio_pff_csr[i].vendor_id);
   911			if (reg != MICROSEMI_VENDOR_ID)
   912				break;
   913	
   914			reg = ioread32(&stdev->mmio_pff_csr[i].pff_event_summary);
   915			s.pff[i] = reg;
   916		}
   917	
   918		if (copy_to_user(usum, &s, sizeof(s)))
   919			return -EFAULT;
   920	
   921		stuser->event_cnt = atomic_read(&stdev->event_cnt);
   922	
   923		return 0;
   924	}
   925	

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

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-02  7:14 [sashal-linux-stable:queue-4.14 63/74] drivers/pci/switch/switchtec.c:901:18: error: implicit declaration of function 'readq'; did you mean 'readl'? 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.