All of lore.kernel.org
 help / color / mirror / Atom feed
* [l1k:aer_baseline_v1 7/7] drivers/pci/pcie/aer.c:437:3: error: expected ')'
@ 2026-09-18  3:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-18  3:41 UTC (permalink / raw)
  To: Lukas Wunner; +Cc: oe-kbuild-all

tree:   https://github.com/l1k/linux aer_baseline_v1
head:   c03892987cf6c02922172ccd72a517bd7790d3b1
commit: c03892987cf6c02922172ccd72a517bd7790d3b1 [7/7] PCI/AER: Enable baseline capability error reporting
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20260918/202609180509.UrH3oLIr-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260918/202609180509.UrH3oLIr-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/202609180509.UrH3oLIr-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/pci/pcie/aer.c:437:3: error: expected ')'
     437 |                 pcie_clear_device_status(dev);
         |                 ^
   drivers/pci/pcie/aer.c:436:5: note: to match this '('
     436 |         if (pcie_aer_is_native(dev)
         |            ^
   1 error generated.


vim +437 drivers/pci/pcie/aer.c

   395	
   396	void pci_aer_init(struct pci_dev *dev)
   397	{
   398		int n;
   399	
   400		if (!pci_is_pcie(dev))
   401			return;
   402	
   403		dev->aer_info = kzalloc_obj(*dev->aer_info);
   404		if (!dev->aer_info)
   405			return;
   406	
   407		ratelimit_state_init(&dev->aer_info->correctable_ratelimit,
   408				     DEFAULT_RATELIMIT_INTERVAL, DEFAULT_RATELIMIT_BURST);
   409		ratelimit_state_init(&dev->aer_info->nonfatal_ratelimit,
   410				     DEFAULT_RATELIMIT_INTERVAL, DEFAULT_RATELIMIT_BURST);
   411	
   412		dev->aer_cap = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR);
   413		if (!dev->aer_cap)
   414			goto enable;
   415	
   416		/*
   417		 * We save/restore PCI_ERR_UNCOR_MASK, PCI_ERR_UNCOR_SEVER,
   418		 * PCI_ERR_COR_MASK, and PCI_ERR_CAP.  Root and Root Complex Event
   419		 * Collectors also implement PCI_ERR_ROOT_COMMAND (PCIe r6.0, sec
   420		 * 7.8.4.9).
   421		 */
   422		n = pcie_cap_has_rtctl(dev) ? 5 : 4;
   423		pci_add_ext_cap_save_buffer(dev, PCI_EXT_CAP_ID_ERR, sizeof(u32) * n);
   424	
   425		/*
   426		 * Advisory Non-Fatal Errors are masked by default (PCIe r7.0, sec
   427		 * 7.8.4.6).
   428		 */
   429		if (pcie_aer_is_native(dev) && dev->devcap & PCI_EXP_DEVCAP_RBER)
   430			pci_clear_and_set_config_dword(dev,
   431						       dev->aer_cap + PCI_ERR_COR_MASK,
   432						       PCI_ERR_COR_ADV_NFAT, 0);
   433	
   434		pci_aer_clear_status(dev);
   435	enable:
   436		if (pcie_aer_is_native(dev)
 > 437			pcie_clear_device_status(dev);
   438	
   439		if (pci_aer_available())
   440			pci_enable_pcie_error_reporting(dev);
   441	
   442		pcie_set_ecrc_checking(dev);
   443	}
   444	

--
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-09-18  3:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-18  3:41 [l1k:aer_baseline_v1 7/7] drivers/pci/pcie/aer.c:437:3: error: expected ')' 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.