* drivers/scsi/virtio-scsi-pci-epf.c:1058:34: error: implicit declaration of function 'readq'; did you mean 'readl'?
@ 2026-09-08 13:33 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-08 13:33 UTC (permalink / raw)
To: Alistair Francis; +Cc: oe-kbuild-all, 0day robot
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-08 13:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08 13:33 drivers/scsi/virtio-scsi-pci-epf.c:1058:34: error: implicit declaration of function 'readq'; did you mean 'readl'? 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.