lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210210057.dbw1XK5j-lkp@intel.com>
Date:   Fri, 21 Oct 2022 00:14:27 +0800
From:   kernel test robot <lkp@...el.com>
To:     Andi Kleen <ak@...ux.intel.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
        Kuppuswamy Sathyanarayanan 
        <sathyanarayanan.kuppuswamy@...ux.intel.com>
Subject: [intel-tdx:guest-hardening-rebased 24/39]
 drivers/pci/probe.c:2452:14: error: implicit declaration of function
 'cc_platform_has'

tree:   https://github.com/intel/tdx.git guest-hardening-rebased
head:   a776cd6bccecbc2d28182725dc9ad4788df6cb65
commit: c4d7ca0ec5b4f4ceacd5603e007312f90237b970 [24/39] x86/tdx: Disable enhanced PCI parsing for TDX
config: s390-debug_defconfig
compiler: s390-linux-gcc (GCC) 12.1.0
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/intel/tdx/commit/c4d7ca0ec5b4f4ceacd5603e007312f90237b970
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest-hardening-rebased
        git checkout c4d7ca0ec5b4f4ceacd5603e007312f90237b970
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   drivers/pci/probe.c: In function 'pci_init_capabilities':
>> drivers/pci/probe.c:2452:14: error: implicit declaration of function 'cc_platform_has' [-Werror=implicit-function-declaration]
    2452 |         if (!cc_platform_has(CC_ATTR_GUEST_HARDENED))
         |              ^~~~~~~~~~~~~~~
>> drivers/pci/probe.c:2452:30: error: 'CC_ATTR_GUEST_HARDENED' undeclared (first use in this function)
    2452 |         if (!cc_platform_has(CC_ATTR_GUEST_HARDENED))
         |                              ^~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/probe.c:2452:30: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors


vim +/cc_platform_has +2452 drivers/pci/probe.c

  2449	
  2450	static void pci_init_capabilities(struct pci_dev *dev)
  2451	{
> 2452		if (!cc_platform_has(CC_ATTR_GUEST_HARDENED))
  2453			pci_ea_init(dev);	/* Enhanced Allocation */
  2454	
  2455		pci_msi_init(dev);		/* Disable MSI */
  2456		pci_msix_init(dev);		/* Disable MSI-X */
  2457	
  2458		if (cc_platform_has(CC_ATTR_GUEST_HARDENED))
  2459			return;
  2460	
  2461		/* Buffers for saving PCIe and PCI-X capabilities */
  2462		pci_allocate_cap_save_buffers(dev);
  2463	
  2464		pci_pm_init(dev);		/* Power Management */
  2465		pci_vpd_init(dev);		/* Vital Product Data */
  2466		pci_configure_ari(dev);		/* Alternative Routing-ID Forwarding */
  2467		pci_iov_init(dev);		/* Single Root I/O Virtualization */
  2468		pci_ats_init(dev);		/* Address Translation Services */
  2469		pci_pri_init(dev);		/* Page Request Interface */
  2470		pci_pasid_init(dev);		/* Process Address Space ID */
  2471		pci_acs_init(dev);		/* Access Control Services */
  2472		pci_ptm_init(dev);		/* Precision Time Measurement */
  2473		pci_aer_init(dev);		/* Advanced Error Reporting */
  2474		pci_dpc_init(dev);		/* Downstream Port Containment */
  2475		pci_rcec_init(dev);		/* Root Complex Event Collector */
  2476	
  2477		pcie_report_downtraining(dev);
  2478		pci_init_reset_methods(dev);
  2479	}
  2480	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (89880 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ