All of lore.kernel.org
 help / color / mirror / Atom feed
* [djiang:cxl-qtg 9/20] lib/fw_table.c:236:22: error: use of undeclared identifier 'cdat_table_parse'; did you mean 'acpi_table_parse'?
@ 2023-12-10 21:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-10 21:33 UTC (permalink / raw)
  To: Dave Jiang; +Cc: llvm, oe-kbuild-all, Jonathan Cameron

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git cxl-qtg
head:   2d34ef1dba862ef38a027e8135475bb317894702
commit: 8e96a43deade4e1db56f3386c7a3c185f22310f7 [9/20] cxl: Add callback to parse the DSMAS subtables from CDAT
config: arm64-randconfig-002-20231211 (https://download.01.org/0day-ci/archive/20231211/202312110552.D6nSP8Y5-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231211/202312110552.D6nSP8Y5-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/202312110552.D6nSP8Y5-lkp@intel.com/

All errors (new ones prefixed by >>):

   lib/fw_table.c:29:39: error: expected ';' after top level declarator
   static unsigned long __init_or_acpilib
                                         ^
                                         ;
>> lib/fw_table.c:236:22: error: use of undeclared identifier 'cdat_table_parse'; did you mean 'acpi_table_parse'?
   EXPORT_SYMBOL_NS_GPL(cdat_table_parse, CXL);
                        ^~~~~~~~~~~~~~~~
                        acpi_table_parse
   include/linux/export.h:89:55: note: expanded from macro 'EXPORT_SYMBOL_NS_GPL'
   #define EXPORT_SYMBOL_NS_GPL(sym, ns)   __EXPORT_SYMBOL(sym, "GPL", __stringify(ns))
                                                           ^
   include/linux/export.h:75:16: note: expanded from macro '__EXPORT_SYMBOL'
           __ADDRESSABLE(sym)                                      \
                         ^
   include/linux/compiler.h:214:17: note: expanded from macro '__ADDRESSABLE'
           ___ADDRESSABLE(sym, __section(".discard.addressable"))
                          ^
   include/linux/compiler.h:212:55: note: expanded from macro '___ADDRESSABLE'
                   __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)&sym;
                                                                       ^
   include/linux/acpi.h:908:19: note: 'acpi_table_parse' declared here
   static inline int acpi_table_parse(char *id,
                     ^
   2 errors generated.


vim +236 lib/fw_table.c

3c31bb75ec8d40 Dave Jiang 2023-05-24  217  
3c31bb75ec8d40 Dave Jiang 2023-05-24  218  int cdat_table_parse(enum acpi_cdat_type type,
3c31bb75ec8d40 Dave Jiang 2023-05-24  219  		     acpi_tbl_entry_handler_arg handler_arg, void *arg,
3c31bb75ec8d40 Dave Jiang 2023-05-24  220  		     struct acpi_table_cdat *table_header)
3c31bb75ec8d40 Dave Jiang 2023-05-24  221  {
3c31bb75ec8d40 Dave Jiang 2023-05-24  222  	struct acpi_subtable_proc proc = {
3c31bb75ec8d40 Dave Jiang 2023-05-24  223  		.id		= type,
3c31bb75ec8d40 Dave Jiang 2023-05-24  224  		.handler_arg	= handler_arg,
3c31bb75ec8d40 Dave Jiang 2023-05-24  225  		.arg		= arg,
3c31bb75ec8d40 Dave Jiang 2023-05-24  226  	};
3c31bb75ec8d40 Dave Jiang 2023-05-24  227  
3c31bb75ec8d40 Dave Jiang 2023-05-24  228  	if (!table_header)
3c31bb75ec8d40 Dave Jiang 2023-05-24  229  		return -EINVAL;
3c31bb75ec8d40 Dave Jiang 2023-05-24  230  
3c31bb75ec8d40 Dave Jiang 2023-05-24  231  	return acpi_parse_entries_array(ACPI_SIG_CDAT,
3c31bb75ec8d40 Dave Jiang 2023-05-24  232  					sizeof(struct acpi_table_cdat),
3c31bb75ec8d40 Dave Jiang 2023-05-24  233  					(union fw_table_header *)table_header,
3c31bb75ec8d40 Dave Jiang 2023-05-24  234  					&proc, 1, 0);
3c31bb75ec8d40 Dave Jiang 2023-05-24  235  }
3c31bb75ec8d40 Dave Jiang 2023-05-24 @236  EXPORT_SYMBOL_NS_GPL(cdat_table_parse, CXL);

:::::: The code at line 236 was first introduced by commit
:::::: 3c31bb75ec8d4007bb99dc34ad5efbb1ffe6ff3b lib/firmware_table: tables: Add CDAT table parsing support

:::::: TO: Dave Jiang <dave.jiang@intel.com>
:::::: CC: Dave Jiang <dave.jiang@intel.com>

-- 
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:[~2023-12-10 21:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-10 21:33 [djiang:cxl-qtg 9/20] lib/fw_table.c:236:22: error: use of undeclared identifier 'cdat_table_parse'; did you mean 'acpi_table_parse'? 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.