kbuild Development List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alistair Francis <alistair.francis@wdc.com>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: drivers/scsi/virtio-scsi-pci-epf.c:1058:34: error: implicit declaration of function 'readq'; did you mean 'readl'?
Date: Tue, 08 Sep 2026 15:33:42 +0200	[thread overview]
Message-ID: <202609081542.LblEiwhe-lkp@intel.com> (raw)

tree:   https://github.com/intel-lab-lkp/linux/commits/alistair23-gmail-com/virtio_pci-Add-a-quirk-to-force-DMA-Map-API-for-certain-legacy-devices/20260901-114649
head:   3c8cbce2a30d266ce3f5ba5e91de82a74a2ca005
commit: 3c8cbce2a30d266ce3f5ba5e91de82a74a2ca005 scsi: Initial commit of VirtIO PCIe Endpoint Driver
date:   7 days ago
config: xtensa-allyesconfig (https://download.01.org/0day-ci/archive/20260908/202609081542.LblEiwhe-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260908/202609081542.LblEiwhe-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609081542.LblEiwhe-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/swab.h:5,
                    from include/uapi/linux/byteorder/big_endian.h:14,
                    from include/linux/byteorder/big_endian.h:5,
                    from arch/xtensa/include/uapi/asm/byteorder.h:8,
                    from arch/xtensa/include/asm/bitops.h:21,
                    from include/linux/bitops.h:67,
                    from include/linux/log2.h:12,
                    from include/asm-generic/div64.h:55,
                    from ./arch/xtensa/include/generated/asm/div64.h:1,
                    from include/linux/math.h:6,
                    from include/linux/math64.h:6,
                    from include/linux/time.h:6,
                    from include/linux/stat.h:19,
                    from include/linux/configfs.h:22,
                    from drivers/scsi/virtio-scsi-pci-epf.c:15:
   drivers/scsi/virtio-scsi-pci-epf.c: In function 'scsit_pci_epf_read_desc':
>> drivers/scsi/virtio-scsi-pci-epf.c:1058:34: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Wimplicit-function-declaration]
    1058 |         desc->addr = cpu_to_le64(readq(p + offsetof(struct vring_desc, addr)));
         |                                  ^~~~~
   include/uapi/linux/swab.h:131:38: note: in definition of macro '__swab64'
     131 |         (__u64)(__builtin_constant_p(x) ?       \
         |                                      ^
   include/linux/byteorder/generic.h:86:21: note: in expansion of macro '__cpu_to_le64'
      86 | #define cpu_to_le64 __cpu_to_le64
         |                     ^~~~~~~~~~~~~
   drivers/scsi/virtio-scsi-pci-epf.c:1058:22: note: in expansion of macro 'cpu_to_le64'
    1058 |         desc->addr = cpu_to_le64(readq(p + offsetof(struct vring_desc, addr)));
         |                      ^~~~~~~~~~~
   In file included from drivers/scsi/virtio-scsi-pci-epf.c:23:
   drivers/scsi/virtio-scsi-pci-epf.c: At top level:
   include/linux/pci_ids.h:19:41: warning: unsigned conversion from 'int' to 'unsigned char' changes value from '256' to '0' [-Woverflow]
      19 | #define PCI_CLASS_STORAGE_SCSI          0x0100
         |                                         ^~~~~~
   drivers/scsi/virtio-scsi-pci-epf.c:2642:27: note: in expansion of macro 'PCI_CLASS_STORAGE_SCSI'
    2642 |         .subclass_code  = PCI_CLASS_STORAGE_SCSI,
         |                           ^~~~~~~~~~~~~~~~~~~~~~


vim +1058 drivers/scsi/virtio-scsi-pci-epf.c

  1048	
  1049	static int scsit_pci_epf_read_desc(struct scsit_pci_epf_vq *vq,
  1050					   u16 idx, struct vring_desc *desc)
  1051	{
  1052		void __iomem *p;
  1053	
  1054		if (idx >= vq->depth)
  1055			return -EINVAL;
  1056	
  1057		p = vq->desc_map.virt_addr + (size_t)idx * sizeof(struct vring_desc);
> 1058		desc->addr = cpu_to_le64(readq(p + offsetof(struct vring_desc, addr)));
  1059		desc->len = cpu_to_le32(readl(p + offsetof(struct vring_desc, len)));
  1060		desc->flags = cpu_to_le16(readw(p + offsetof(struct vring_desc, flags)));
  1061		desc->next = cpu_to_le16(readw(p + offsetof(struct vring_desc, next)));
  1062	
  1063		return 0;
  1064	}
  1065	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-09-08 13:34 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=202609081542.LblEiwhe-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alistair.francis@wdc.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox