[l1k:doe-7.2-rc1-wip 7/21] drivers/pci/pcie/aer.c:987:3: error: member reference base type 'char' is not a structure or union

kernel test robot <[email protected]> Thu, 30 Jul 2026 18:48:18 +0200
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/l1k/linux doe-7.2-rc1-wip
head:   3ff494368f930bbd2364d93688549fcbd02a3881
commit: 7dde1844d2677e5a1c1f086d6f91294255ff571a [7/21] PCI/AER: Prettify error source logging
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260730/[email protected]/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/20260730/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> drivers/pci/pcie/aer.c:987:3: error: member reference base type 'char' is not a structure or union
     987 |                 aer_printk(dev, "%s Bus Error: severity=%s (Inaccessible)\n",
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     988 |                            bus_type, aer_error_severity_string[info->severity]);
         |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/pcie/aer.c:42:27: note: expanded from macro 'aer_printk'
      42 |         dev_printk(level, &(pdev)->dev, fmt, ##arg)
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:129:22: note: expanded from macro 'dev_printk'
     129 |                 _dev_printk(level, dev, fmt, ##__VA_ARGS__);            \
         |                                    ^~~
   1 error generated.


vim +/char +987 drivers/pci/pcie/aer.c

   961	
   962	void aer_print_error(struct aer_err_info *info, int i)
   963	{
   964		struct pci_dev *dev;
   965		const char *level = info->level;
   966		const char *bus_type = aer_err_bus(info);
   967	
   968		if (WARN_ON_ONCE(i >= AER_MAX_MULTI_ERR_DEVICES))
   969			return;
   970	
   971		dev = info->dev[i];
   972	
   973		pci_dev_aer_stats_incr(dev, info);
   974		trace_aer_event(pci_name(dev), (info->status & ~info->mask),
   975				info->severity, info->tlp_header_valid &&
   976				info->severity != AER_CORRECTABLE, &info->tlp,
   977				bus_type);
   978	
   979		/*
   980		 * For Advisory Non-Fatal Errors, record statistics and tracing
   981		 * even if ratelimited
   982		 */
   983		if (!info->ratelimit_print[i])
   984			goto anfe;
   985	
   986		if (!info->status) {
 > 987			aer_printk(dev, "%s Bus Error: severity=%s (Inaccessible)\n",
   988				   bus_type, aer_error_severity_string[info->severity]);
   989			return;
   990		}
   991	
   992		aer_printk(level, dev, "%s Bus Error: severity=%s\n",
   993			   bus_type, aer_error_severity_string[info->severity]);
   994	
   995		aer_printk(level, dev, "  device [%04x:%04x] error status/mask=%08x/%08x\n",
   996			   dev->vendor, dev->device, info->status, info->mask);
   997	
   998		__aer_print_error(dev, info);
   999	
  1000		if (info->tlp_header_valid && info->severity != AER_CORRECTABLE)
  1001			pcie_print_tlp_log(dev, &info->tlp, level, dev_fmt("  "));
  1002	
  1003	anfe:
  1004		/* Recursive invocation for Advisory Non-Fatal Errors */
  1005		if (info->anfe_status && info->severity == AER_CORRECTABLE) {
  1006			info->severity = AER_NONFATAL;
  1007			info->status = info->anfe_status;
  1008			info->mask = 0;
  1009	
  1010			aer_print_error(info, i);
  1011	
  1012			info->severity = AER_CORRECTABLE;
  1013		}
  1014	}
  1015	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki