All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: drivers/pci/pwrctrl/generic.c:122:9: sparse: sparse: Initializer entry defined twice
Date: Fri, 04 Dec 2026 03:35:54 +0100	[thread overview]
Message-ID: <20261204032907.fooJIDV4-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "low confidence static check warning: drivers/pci/pwrctrl/generic.c:122:9: sparse: sparse: Initializer entry defined twice"
:::::: Manual check reason: "sparse: Initializer entry defined twice"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Neil Armstrong <neil.armstrong@linaro.org>
CC: Bjorn Helgaas <helgaas@kernel.org>
CC: Manivannan Sadhasivam <mani@kernel.org>
CC: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

Hi Neil,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   007722b8211f7b34fdf21b1e6a9c32497633ea29
commit: ff124bbbca1d3a07fa1392ffdbbdeece71f68ece PCI/pwrctrl: generic: Rename pci-pwrctrl-slot as generic
date:   9 months ago
:::::: branch date: 9 hours ago
:::::: commit date: 9 months ago
config: microblaze-randconfig-r2310-20261203 (https://download.01.org/0day-ci/archive/20261204/20261204032907.fooJIDV4-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 13.5.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261204/20261204032907.fooJIDV4-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
| Fixes: ff124bbbca1d ("PCI/pwrctrl: generic: Rename pci-pwrctrl-slot as generic")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261204032907.fooJIDV4-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/pci/pwrctrl/generic.c:122:9: sparse: sparse: Initializer entry defined twice
   drivers/pci/pwrctrl/generic.c:125:9: sparse:   also defined here

vim +122 drivers/pci/pwrctrl/generic.c

75996c92f4de30 drivers/pci/pwrctrl/slot.c Manivannan Sadhasivam 2025-01-16  120  
e40d16e6c23994 drivers/pci/pwrctrl/slot.c Bjorn Helgaas         2026-01-15  121  static const struct of_device_id slot_pwrctrl_of_match[] = {
75996c92f4de30 drivers/pci/pwrctrl/slot.c Manivannan Sadhasivam 2025-01-16 @122  	{
75996c92f4de30 drivers/pci/pwrctrl/slot.c Manivannan Sadhasivam 2025-01-16  123  		.compatible = "pciclass,0604",
75996c92f4de30 drivers/pci/pwrctrl/slot.c Manivannan Sadhasivam 2025-01-16  124  	},
75996c92f4de30 drivers/pci/pwrctrl/slot.c Manivannan Sadhasivam 2025-01-16  125  	{ }
75996c92f4de30 drivers/pci/pwrctrl/slot.c Manivannan Sadhasivam 2025-01-16  126  };
e40d16e6c23994 drivers/pci/pwrctrl/slot.c Bjorn Helgaas         2026-01-15  127  MODULE_DEVICE_TABLE(of, slot_pwrctrl_of_match);
75996c92f4de30 drivers/pci/pwrctrl/slot.c Manivannan Sadhasivam 2025-01-16  128  

:::::: The code at line 122 was first introduced by commit
:::::: 75996c92f4de309f855471927e6489f5a354cfd4 PCI/pwrctrl: Add pwrctrl driver for PCI slots

:::::: TO: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
:::::: CC: Krzysztof Wilczyński <kwilczynski@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-12-04  2:36 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=20261204032907.fooJIDV4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@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.