All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [zen:5.14/zen-sauce 24/33] drivers/pci/controller/intel-nvme-remap.c:447:12: warning: initializer overrides prior initialization of this subobject
Date: Sat, 30 Oct 2021 04:57:51 +0800	[thread overview]
Message-ID: <202110300441.Sef1IKdn-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3602 bytes --]

Hi Daniel,

FYI, the error/warning still remains.

tree:   https://github.com/zen-kernel/zen-kernel 5.14/zen-sauce
head:   08fa0c26a3f97066fdb47aa4bea0bda555bfa98e
commit: f05a76bbac2ea8737c5b6a64a1e842da8c52a146 [24/33] PCI: Add Intel remapped NVMe device support
config: x86_64-randconfig-a015-20211028 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/zen-kernel/zen-kernel/commit/f05a76bbac2ea8737c5b6a64a1e842da8c52a146
        git remote add zen https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen 5.14/zen-sauce
        git checkout f05a76bbac2ea8737c5b6a64a1e842da8c52a146
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/pci/controller/intel-nvme-remap.c:447:12: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
                   .class = PCI_CLASS_STORAGE_RAID << 8,
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/pci_ids.h:23:33: note: expanded from macro 'PCI_CLASS_STORAGE_RAID'
   #define PCI_CLASS_STORAGE_RAID          0x0104
                                           ^
   drivers/pci/controller/intel-nvme-remap.c:446:3: note: previous initialization is here
                   PCI_VDEVICE(INTEL, PCI_ANY_ID),
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/pci.h:944:52: note: expanded from macro 'PCI_VDEVICE'
           .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                                             ^
   drivers/pci/controller/intel-nvme-remap.c:448:17: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
                   .class_mask = 0xffffff00,
                                 ^~~~~~~~~~
   drivers/pci/controller/intel-nvme-remap.c:446:3: note: previous initialization is here
                   PCI_VDEVICE(INTEL, PCI_ANY_ID),
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/pci.h:944:55: note: expanded from macro 'PCI_VDEVICE'
           .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
                                                                ^
   2 warnings generated.


vim +447 drivers/pci/controller/intel-nvme-remap.c

   434	
   435	static const struct pci_device_id nvme_remap_ids[] = {
   436		/*
   437		 * Match all Intel RAID controllers.
   438		 *
   439		 * There's overlap here with the set of devices detected by the ahci
   440		 * driver, but ahci will only successfully probe when there
   441		 * *aren't* any remapped NVMe devices, and this driver will only
   442		 * successfully probe when there *are* remapped NVMe devices that
   443		 * need handling.
   444		 */
   445		{
   446			PCI_VDEVICE(INTEL, PCI_ANY_ID),
 > 447			.class = PCI_CLASS_STORAGE_RAID << 8,
   448			.class_mask = 0xffffff00,
   449		},
   450		{0,}
   451	};
   452	MODULE_DEVICE_TABLE(pci, nvme_remap_ids);
   453	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38615 bytes --]

             reply	other threads:[~2021-10-29 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-29 20:57 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-11-07 15:25 [zen:5.14/zen-sauce 24/33] drivers/pci/controller/intel-nvme-remap.c:447:12: warning: initializer overrides prior initialization of this subobject kernel test robot
2021-10-03 15:38 kernel test robot

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=202110300441.Sef1IKdn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.