Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [devsec-tsm:staging 22/27] include/linux/pci-tsm.h:170:13: error: no member named 'ide_cap' in 'struct pci_dev'
@ 2025-11-02 20:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-02 20:30 UTC (permalink / raw)
  To: Dan Williams; +Cc: llvm, oe-kbuild-all

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/devsec/tsm staging
head:   eba5ca799114a6493e64a31dc8724a51d0bd6cf2
commit: 0e16ce0b9c64ed7ac06c9434853595ae98cb6499 [22/27] samples/devsec: Introduce a PCI device-security bus + endpoint sample
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20251103/202511030412.Me2CaUE1-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project d2625a438020ad35330cda29c3def102c1687b1b)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251103/202511030412.Me2CaUE1-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/202511030412.Me2CaUE1-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from samples/devsec/link_tsm.c:6:
>> include/linux/pci-tsm.h:170:13: error: no member named 'ide_cap' in 'struct pci_dev'
     170 |                 if (pdev->ide_cap || (pdev->devcap & PCI_EXP_DEVCAP_TEE))
         |                     ~~~~  ^
   1 error generated.
--
   In file included from drivers/pci/tsm.c:15:
>> include/linux/pci-tsm.h:170:13: error: no member named 'ide_cap' in 'struct pci_dev'
     170 |                 if (pdev->ide_cap || (pdev->devcap & PCI_EXP_DEVCAP_TEE))
         |                     ~~~~  ^
>> drivers/pci/tsm.c:187:9: error: no member named 'ide_cap' in 'struct pci_dev'
     187 |                 pdev->ide_cap ? "IDE" : "", pdev->ide_cap && tee ? " " : "",
         |                 ~~~~  ^
   drivers/pci/tsm.c:187:37: error: no member named 'ide_cap' in 'struct pci_dev'
     187 |                 pdev->ide_cap ? "IDE" : "", pdev->ide_cap && tee ? " " : "",
         |                                             ~~~~  ^
   3 errors generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for PCI_TSM
   Depends on [n]: PCI [=y] && ARCH_HAS_CC_PLATFORM [=n]
   Selected by [m]:
   - SAMPLE_DEVSEC [=m] && SAMPLES [=y] && m [=m] && MODULES [=y] && PCI [=y] && VIRT_DRIVERS [=y] && (PCI_DOMAINS_GENERIC [=y] || X86)


vim +170 include/linux/pci-tsm.h

888b936770188b Dan Williams 2025-10-09  146  
722f1b0155cfba Dan Williams 2025-10-15  147  /* physical function0 and capable of 'connect' */
722f1b0155cfba Dan Williams 2025-10-15  148  static inline bool is_pci_tsm_pf0(struct pci_dev *pdev)
722f1b0155cfba Dan Williams 2025-10-15  149  {
722f1b0155cfba Dan Williams 2025-10-15  150  	if (!pdev)
722f1b0155cfba Dan Williams 2025-10-15  151  		return false;
722f1b0155cfba Dan Williams 2025-10-15  152  
722f1b0155cfba Dan Williams 2025-10-15  153  	if (!pci_is_pcie(pdev))
722f1b0155cfba Dan Williams 2025-10-15  154  		return false;
722f1b0155cfba Dan Williams 2025-10-15  155  
722f1b0155cfba Dan Williams 2025-10-15  156  	if (pdev->is_virtfn)
722f1b0155cfba Dan Williams 2025-10-15  157  		return false;
722f1b0155cfba Dan Williams 2025-10-15  158  
722f1b0155cfba Dan Williams 2025-10-15  159  	/*
722f1b0155cfba Dan Williams 2025-10-15  160  	 * Allow for a Device Security Manager (DSM) associated with function0
722f1b0155cfba Dan Williams 2025-10-15  161  	 * of an Endpoint to coordinate TDISP requests for other functions
722f1b0155cfba Dan Williams 2025-10-15  162  	 * (physical or virtual) of the device, or allow for an Upstream Port
722f1b0155cfba Dan Williams 2025-10-15  163  	 * DSM to accept TDISP requests for the Endpoints downstream of the
722f1b0155cfba Dan Williams 2025-10-15  164  	 * switch.
722f1b0155cfba Dan Williams 2025-10-15  165  	 */
722f1b0155cfba Dan Williams 2025-10-15  166  	switch (pci_pcie_type(pdev)) {
722f1b0155cfba Dan Williams 2025-10-15  167  	case PCI_EXP_TYPE_ENDPOINT:
722f1b0155cfba Dan Williams 2025-10-15  168  	case PCI_EXP_TYPE_UPSTREAM:
722f1b0155cfba Dan Williams 2025-10-15  169  	case PCI_EXP_TYPE_RC_END:
722f1b0155cfba Dan Williams 2025-10-15 @170  		if (pdev->ide_cap || (pdev->devcap & PCI_EXP_DEVCAP_TEE))
722f1b0155cfba Dan Williams 2025-10-15  171  			break;
722f1b0155cfba Dan Williams 2025-10-15  172  		fallthrough;
722f1b0155cfba Dan Williams 2025-10-15  173  	default:
722f1b0155cfba Dan Williams 2025-10-15  174  		return false;
722f1b0155cfba Dan Williams 2025-10-15  175  	}
722f1b0155cfba Dan Williams 2025-10-15  176  
722f1b0155cfba Dan Williams 2025-10-15  177  	return PCI_FUNC(pdev->devfn) == 0;
722f1b0155cfba Dan Williams 2025-10-15  178  }
722f1b0155cfba Dan Williams 2025-10-15  179  

:::::: The code at line 170 was first introduced by commit
:::::: 722f1b0155cfba90fd41d0bf884b0b5752c55fec PCI/TSM: Establish Secure Sessions and Link Encryption

:::::: TO: Dan Williams <dan.j.williams@intel.com>
:::::: CC: Dan Williams <dan.j.williams@intel.com>

-- 
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:[~2025-11-02 20:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-02 20:30 [devsec-tsm:staging 22/27] include/linux/pci-tsm.h:170:13: error: no member named 'ide_cap' in 'struct pci_dev' 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