All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-tdx:guest 74/113] drivers/pci/probe.c:2490:39: error: implicit declaration of function 'prot_guest_authorized'
@ 2021-08-28  2:32 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-28  2:32 UTC (permalink / raw)
  To: Kuppuswamy Sathyanarayanan; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3798 bytes --]

tree:   https://github.com/intel/tdx.git guest
head:   44e41606b85b08fad5378c876547f8557f835cf6
commit: a98e797332570c32181b3e7d4d896f1e6362c61f [74/113] PCI: Initialize authorized attribute for protected guest
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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/a98e797332570c32181b3e7d4d896f1e6362c61f
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest
        git checkout a98e797332570c32181b3e7d4d896f1e6362c61f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/pci/probe.c: In function 'pci_device_add':
   drivers/pci/probe.c:2488:13: error: implicit declaration of function 'prot_guest_has' [-Werror=implicit-function-declaration]
    2488 |         if (prot_guest_has(PATTR_GUEST_DEVICE_FILTER)) {
         |             ^~~~~~~~~~~~~~
   drivers/pci/probe.c:2488:28: error: 'PATTR_GUEST_DEVICE_FILTER' undeclared (first use in this function)
    2488 |         if (prot_guest_has(PATTR_GUEST_DEVICE_FILTER)) {
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/probe.c:2488:28: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/pci/probe.c:2490:39: error: implicit declaration of function 'prot_guest_authorized' [-Werror=implicit-function-declaration]
    2490 |                 dev->dev.authorized = prot_guest_authorized(&dev->dev, dev_str);
         |                                       ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/prot_guest_authorized +2490 drivers/pci/probe.c

  2479	
  2480	void pci_device_add(struct pci_dev *dev, struct pci_bus *bus)
  2481	{
  2482		int ret;
  2483		char dev_str[16];
  2484	
  2485		pci_configure_device(dev);
  2486	
  2487		device_initialize(&dev->dev);
> 2488		if (prot_guest_has(PATTR_GUEST_DEVICE_FILTER)) {
  2489			sprintf(dev_str, "0x%x:0x%x", dev->vendor, dev->device);
> 2490			dev->dev.authorized = prot_guest_authorized(&dev->dev, dev_str);
  2491		}
  2492		dev->dev.release = pci_release_dev;
  2493	
  2494		set_dev_node(&dev->dev, pcibus_to_node(bus));
  2495		dev->dev.dma_mask = &dev->dma_mask;
  2496		dev->dev.dma_parms = &dev->dma_parms;
  2497		dev->dev.coherent_dma_mask = 0xffffffffull;
  2498	
  2499		dma_set_max_seg_size(&dev->dev, 65536);
  2500		dma_set_seg_boundary(&dev->dev, 0xffffffff);
  2501	
  2502		/* Fix up broken headers */
  2503		pci_fixup_device(pci_fixup_header, dev);
  2504	
  2505		pci_reassigndev_resource_alignment(dev);
  2506	
  2507		dev->state_saved = false;
  2508	
  2509		pci_init_capabilities(dev);
  2510	
  2511		/*
  2512		 * Add the device to our list of discovered devices
  2513		 * and the bus list for fixup functions, etc.
  2514		 */
  2515		down_write(&pci_bus_sem);
  2516		list_add_tail(&dev->bus_list, &bus->devices);
  2517		up_write(&pci_bus_sem);
  2518	
  2519		ret = pcibios_add_device(dev);
  2520		WARN_ON(ret < 0);
  2521	
  2522		/* Set up MSI IRQ domain */
  2523		pci_set_msi_domain(dev);
  2524	
  2525		/* Notifier could use PCI capabilities */
  2526		dev->match_driver = false;
  2527		ret = device_add(&dev->dev);
  2528		WARN_ON(ret < 0);
  2529	}
  2530	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 73340 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [intel-tdx:guest 74/113] drivers/pci/probe.c:2490:39: error: implicit declaration of function 'prot_guest_authorized'
@ 2021-08-28  2:32 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-28  2:32 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3890 bytes --]

tree:   https://github.com/intel/tdx.git guest
head:   44e41606b85b08fad5378c876547f8557f835cf6
commit: a98e797332570c32181b3e7d4d896f1e6362c61f [74/113] PCI: Initialize authorized attribute for protected guest
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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/a98e797332570c32181b3e7d4d896f1e6362c61f
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest
        git checkout a98e797332570c32181b3e7d4d896f1e6362c61f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/pci/probe.c: In function 'pci_device_add':
   drivers/pci/probe.c:2488:13: error: implicit declaration of function 'prot_guest_has' [-Werror=implicit-function-declaration]
    2488 |         if (prot_guest_has(PATTR_GUEST_DEVICE_FILTER)) {
         |             ^~~~~~~~~~~~~~
   drivers/pci/probe.c:2488:28: error: 'PATTR_GUEST_DEVICE_FILTER' undeclared (first use in this function)
    2488 |         if (prot_guest_has(PATTR_GUEST_DEVICE_FILTER)) {
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/probe.c:2488:28: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/pci/probe.c:2490:39: error: implicit declaration of function 'prot_guest_authorized' [-Werror=implicit-function-declaration]
    2490 |                 dev->dev.authorized = prot_guest_authorized(&dev->dev, dev_str);
         |                                       ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/prot_guest_authorized +2490 drivers/pci/probe.c

  2479	
  2480	void pci_device_add(struct pci_dev *dev, struct pci_bus *bus)
  2481	{
  2482		int ret;
  2483		char dev_str[16];
  2484	
  2485		pci_configure_device(dev);
  2486	
  2487		device_initialize(&dev->dev);
> 2488		if (prot_guest_has(PATTR_GUEST_DEVICE_FILTER)) {
  2489			sprintf(dev_str, "0x%x:0x%x", dev->vendor, dev->device);
> 2490			dev->dev.authorized = prot_guest_authorized(&dev->dev, dev_str);
  2491		}
  2492		dev->dev.release = pci_release_dev;
  2493	
  2494		set_dev_node(&dev->dev, pcibus_to_node(bus));
  2495		dev->dev.dma_mask = &dev->dma_mask;
  2496		dev->dev.dma_parms = &dev->dma_parms;
  2497		dev->dev.coherent_dma_mask = 0xffffffffull;
  2498	
  2499		dma_set_max_seg_size(&dev->dev, 65536);
  2500		dma_set_seg_boundary(&dev->dev, 0xffffffff);
  2501	
  2502		/* Fix up broken headers */
  2503		pci_fixup_device(pci_fixup_header, dev);
  2504	
  2505		pci_reassigndev_resource_alignment(dev);
  2506	
  2507		dev->state_saved = false;
  2508	
  2509		pci_init_capabilities(dev);
  2510	
  2511		/*
  2512		 * Add the device to our list of discovered devices
  2513		 * and the bus list for fixup functions, etc.
  2514		 */
  2515		down_write(&pci_bus_sem);
  2516		list_add_tail(&dev->bus_list, &bus->devices);
  2517		up_write(&pci_bus_sem);
  2518	
  2519		ret = pcibios_add_device(dev);
  2520		WARN_ON(ret < 0);
  2521	
  2522		/* Set up MSI IRQ domain */
  2523		pci_set_msi_domain(dev);
  2524	
  2525		/* Notifier could use PCI capabilities */
  2526		dev->match_driver = false;
  2527		ret = device_add(&dev->dev);
  2528		WARN_ON(ret < 0);
  2529	}
  2530	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 73340 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-28  2:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28  2:32 [intel-tdx:guest 74/113] drivers/pci/probe.c:2490:39: error: implicit declaration of function 'prot_guest_authorized' kernel test robot
2021-08-28  2:32 ` kernel test robot

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.