All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/scsi/virtio-scsi-pci-epf.c:2642:19: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 256 to 0
@ 2026-09-09 11:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-09 11:43 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:   8 days ago
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20260909/202609091342.xK4Hb71Q-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260909/202609091342.xK4Hb71Q-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/202609091342.xK4Hb71Q-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/scsi/virtio-scsi-pci-epf.c:2642:19: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 256 to 0 [-Wconstant-conversion]
    2637 | static struct pci_epf_header scsit_pci_epf_pci_header = {
         |                                                         ~
    2638 |         .vendorid       = PCI_VENDOR_ID_REDHAT_QUMRANET,
    2639 |         .deviceid       = VIRTIO_TRANS_ID_SCSI,
    2640 |         .revid          = VIRTIO_PCI_ABI_VERSION,
    2641 |         .baseclass_code = PCI_BASE_CLASS_STORAGE,
    2642 |         .subclass_code  = PCI_CLASS_STORAGE_SCSI,
         |                           ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/pci_ids.h:19:33: note: expanded from macro 'PCI_CLASS_STORAGE_SCSI'
      19 | #define PCI_CLASS_STORAGE_SCSI          0x0100
         |                                         ^~~~~~
   1 warning generated.


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

  2636	
  2637	static struct pci_epf_header scsit_pci_epf_pci_header = {
  2638		.vendorid	= PCI_VENDOR_ID_REDHAT_QUMRANET,
  2639		.deviceid	= VIRTIO_TRANS_ID_SCSI,
  2640		.revid		= VIRTIO_PCI_ABI_VERSION,
  2641		.baseclass_code = PCI_BASE_CLASS_STORAGE,
> 2642		.subclass_code	= PCI_CLASS_STORAGE_SCSI,
  2643		/* This is an invaild vendor ID, but we set it here
  2644		 * to activate the `force_use_map_api` quirk in the
  2645		 * hosts virtio_pci_legacy_probe() function.
  2646		 * This is because we can't set the VIRTIO_F_ACCESS_PLATFORM feature
  2647		 * with a legacy virtio device.
  2648		 */
  2649		.subsys_vendor_id = 0xFFFF,
  2650		.subsys_id	= VIRTIO_ID_SCSI,
  2651		.interrupt_pin	= PCI_INTERRUPT_INTA,
  2652	};
  2653	

--
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-09 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-09 11:43 drivers/scsi/virtio-scsi-pci-epf.c:2642:19: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 256 to 0 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.