All of lore.kernel.org
 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:2642:19: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 256 to 0
Date: Wed, 09 Sep 2026 13:43:24 +0200	[thread overview]
Message-ID: <202609091342.xK4Hb71Q-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:   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

                 reply	other threads:[~2026-09-09 11:43 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=202609091342.xK4Hb71Q-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 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.