All of lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/pci_ids.h:19:41: warning: unsigned conversion from 'int' to 'unsigned char' changes value from '256' to '0'
@ 2026-09-08  2:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-08  2:45 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: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20260908/202609080411.ja1cXH2Z-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260908/202609080411.ja1cXH2Z-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/202609080411.ja1cXH2Z-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/scsi/virtio-scsi-pci-epf.c:23:
>> 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 +19 include/linux/pci_ids.h

^1da177e4c3f41 Linus Torvalds    2005-04-16  17  
^1da177e4c3f41 Linus Torvalds    2005-04-16  18  #define PCI_BASE_CLASS_STORAGE		0x01
^1da177e4c3f41 Linus Torvalds    2005-04-16 @19  #define PCI_CLASS_STORAGE_SCSI		0x0100
^1da177e4c3f41 Linus Torvalds    2005-04-16  20  #define PCI_CLASS_STORAGE_IDE		0x0101
^1da177e4c3f41 Linus Torvalds    2005-04-16  21  #define PCI_CLASS_STORAGE_FLOPPY	0x0102
^1da177e4c3f41 Linus Torvalds    2005-04-16  22  #define PCI_CLASS_STORAGE_IPI		0x0103
^1da177e4c3f41 Linus Torvalds    2005-04-16  23  #define PCI_CLASS_STORAGE_RAID		0x0104
c9f89475a5b184 Conke Hu          2007-01-09  24  #define PCI_CLASS_STORAGE_SATA		0x0106
c9f89475a5b184 Conke Hu          2007-01-09  25  #define PCI_CLASS_STORAGE_SATA_AHCI	0x010601
4e06cbd42c41f9 Moore, Eric Dean  2005-12-01  26  #define PCI_CLASS_STORAGE_SAS		0x0107
a2e7eefd5618e0 Christoph Hellwig 2016-12-02  27  #define PCI_CLASS_STORAGE_EXPRESS	0x010802
^1da177e4c3f41 Linus Torvalds    2005-04-16  28  #define PCI_CLASS_STORAGE_OTHER		0x0180
^1da177e4c3f41 Linus Torvalds    2005-04-16  29  
a2e7eefd5618e0 Christoph Hellwig 2016-12-02  30  

--
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  2:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08  2:45 include/linux/pci_ids.h:19:41: warning: unsigned conversion from 'int' to '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.