* [pci:controller/cadence 4/4] drivers/pci/controller/cadence/pcie-cadence-debugfs.c:230:18: warning: conditional expression between different enumeration types ('enum cdns_pcie_hpa_ltssm' and 'enum cdns_pcie_lga_ltssm')
@ 2026-07-15 23:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-15 23:00 UTC (permalink / raw)
Cc: oe-kbuild-all, llvm
CC: linux-pci@vger.kernel.org
TO: Hans Zhang <18255117159@163.com>
CC: Manivannan Sadhasivam <mani@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git controller/cadence
head: d70e964dc099821f6c159d8f40aa7be2c62ecfd2
commit: d70e964dc099821f6c159d8f40aa7be2c62ecfd2 [4/4] PCI: cadence: Add LGA IP debugfs for LTSSM status
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20260716/202607160602.7AOJf7Sj-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260716/202607160602.7AOJf7Sj-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/202607160602.7AOJf7Sj-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/pci/controller/cadence/pcie-cadence-debugfs.c:230:18: warning: conditional expression between different enumeration types ('enum cdns_pcie_hpa_ltssm' and 'enum cdns_pcie_lga_ltssm') [-Wenum-compare-conditional]
230 | pci->is_hpa ? hpa_ltssm : lga_ltssm);
| ^ ~~~~~~~~~ ~~~~~~~~~
1 warning generated.
vim +230 drivers/pci/controller/cadence/pcie-cadence-debugfs.c
209
210 static int ltssm_status_show(struct seq_file *s, void *v)
211 {
212 struct cdns_pcie *pci = s->private;
213 enum cdns_pcie_lga_ltssm lga_ltssm;
214 enum cdns_pcie_hpa_ltssm hpa_ltssm;
215 const char *str_ltssm;
216 u32 val;
217
218 if (pci->is_hpa) {
219 val = cdns_pcie_hpa_readl(pci, REG_BANK_IP_REG,
220 CDNS_PCIE_HPA_PHY_DBG_STS_REG0);
221 hpa_ltssm = FIELD_GET(CDNS_PCIE_HPA_LTSSM_STATUS_MASK, val);
222 str_ltssm = cdns_pcie_hpa_ltssm_status_string(hpa_ltssm);
223 } else {
224 val = cdns_pcie_readl(pci, CDNS_PCIE_LM_BASE);
225 lga_ltssm = FIELD_GET(CDNS_PCIE_LGA_LTSSM_STATUS_MASK, val);
226 str_ltssm = cdns_pcie_lga_ltssm_status_string(lga_ltssm);
227 }
228
229 seq_printf(s, "%s (0x%02x)\n", str_ltssm,
> 230 pci->is_hpa ? hpa_ltssm : lga_ltssm);
231
232 return 0;
233 }
234
--
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-07-15 23:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15 23:00 [pci:controller/cadence 4/4] drivers/pci/controller/cadence/pcie-cadence-debugfs.c:230:18: warning: conditional expression between different enumeration types ('enum cdns_pcie_hpa_ltssm' and 'enum cdns_pcie_lga_ltssm') kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox