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]
Date:   Tue, 18 Oct 2022 11:48:38 +0800
From:   kernel test robot <lkp@...el.com>
To:     Andi Kleen <ak@...ux.intel.com>
Cc:     llvm@...ts.linux.dev, 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:7: error: call to undeclared function
 'cc_platform_has'; ISO C99 and later do not support implicit function
 declarations

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: arm-randconfig-r001-20221017
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # 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=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/pci/

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:2452:7: error: call to undeclared function 'cc_platform_has'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           if (!cc_platform_has(CC_ATTR_GUEST_HARDENED))
                ^
>> drivers/pci/probe.c:2452:23: error: use of undeclared identifier 'CC_ATTR_GUEST_HARDENED'
           if (!cc_platform_has(CC_ATTR_GUEST_HARDENED))
                                ^
   drivers/pci/probe.c:2458:22: error: use of undeclared identifier 'CC_ATTR_GUEST_HARDENED'
           if (cc_platform_has(CC_ATTR_GUEST_HARDENED))
                               ^
   3 errors generated.


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" (230003 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ