* [davejiang:cxl-ide 17/24] include/linux/acpi.h:241:19: error: conflicting types for 'acpi_table_parse_cedt'; have 'int(enum acpi_keyp_type, int (*)(union acpi_subtable_headers *, void *, const long unsigned int), void *)'
@ 2023-08-11 17:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-11 17:47 UTC (permalink / raw)
To: Dave Jiang; +Cc: oe-kbuild-all
tree: https://github.com/davejiang/linux.git cxl-ide
head: ee3a63e65f46140bcb484e3d0052d641abceb9da
commit: 7e72c9ad3fa55da9f48f56720b09f5e74e00dc92 [17/24] acpi: Add KEYP support to fw_table parsing
config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20230812/202308120107.ozNASHhc-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230812/202308120107.ozNASHhc-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/202308120107.ozNASHhc-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/acpi/tables.c:19:
>> include/linux/acpi.h:241:19: error: conflicting types for 'acpi_table_parse_cedt'; have 'int(enum acpi_keyp_type, int (*)(union acpi_subtable_headers *, void *, const long unsigned int), void *)'
241 | static inline int acpi_table_parse_cedt(enum acpi_keyp_type id,
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:233:1: note: previous declaration of 'acpi_table_parse_cedt' with type 'int(enum acpi_cedt_type, int (*)(union acpi_subtable_headers *, void *, const long unsigned int), void *)'
233 | acpi_table_parse_cedt(enum acpi_cedt_type id,
| ^~~~~~~~~~~~~~~~~~~~~
>> drivers/acpi/tables.c:279:1: error: conflicting types for 'acpi_table_parse_cedt'; have 'int(enum acpi_cedt_type, int (*)(union acpi_subtable_headers *, void *, const long unsigned int), void *)'
279 | acpi_table_parse_cedt(enum acpi_cedt_type id,
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:241:19: note: previous definition of 'acpi_table_parse_cedt' with type 'int(enum acpi_keyp_type, int (*)(union acpi_subtable_headers *, void *, const long unsigned int), void *)'
241 | static inline int acpi_table_parse_cedt(enum acpi_keyp_type id,
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/acpi/osi.c:15:
>> include/linux/acpi.h:241:19: error: conflicting types for 'acpi_table_parse_cedt'; have 'int(enum acpi_keyp_type, int (*)(union acpi_subtable_headers *, void *, const long unsigned int), void *)'
241 | static inline int acpi_table_parse_cedt(enum acpi_keyp_type id,
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:233:1: note: previous declaration of 'acpi_table_parse_cedt' with type 'int(enum acpi_cedt_type, int (*)(union acpi_subtable_headers *, void *, const long unsigned int), void *)'
233 | acpi_table_parse_cedt(enum acpi_cedt_type id,
| ^~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/acpi/osl.c:26:
>> include/linux/acpi.h:241:19: error: conflicting types for 'acpi_table_parse_cedt'; have 'int(enum acpi_keyp_type, int (*)(union acpi_subtable_headers *, void *, const long unsigned int), void *)'
241 | static inline int acpi_table_parse_cedt(enum acpi_keyp_type id,
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:233:1: note: previous declaration of 'acpi_table_parse_cedt' with type 'int(enum acpi_cedt_type, int (*)(union acpi_subtable_headers *, void *, const long unsigned int), void *)'
233 | acpi_table_parse_cedt(enum acpi_cedt_type id,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/acpi/osl.c: In function 'acpi_os_vprintf':
drivers/acpi/osl.c:156:9: warning: function 'acpi_os_vprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
156 | vsprintf(buffer, fmt, args);
| ^~~~~~~~
vim +241 include/linux/acpi.h
221
222 int acpi_table_parse(char *id, acpi_tbl_table_handler handler);
223 int __init_or_acpilib acpi_table_parse_entries(char *id,
224 unsigned long table_size, int entry_id,
225 acpi_tbl_entry_handler handler, unsigned int max_entries);
226 int __init_or_acpilib acpi_table_parse_entries_array(char *id,
227 unsigned long table_size, struct acpi_subtable_proc *proc,
228 int proc_num, unsigned int max_entries);
229 int acpi_table_parse_madt(enum acpi_madt_type id,
230 acpi_tbl_entry_handler handler,
231 unsigned int max_entries);
232 int __init_or_acpilib
233 acpi_table_parse_cedt(enum acpi_cedt_type id,
234 acpi_tbl_entry_handler_arg handler_arg, void *arg);
235
236 #ifdef CONFIG_X86
237 int __init_or_acpilib
238 acpi_table_parse_keyp(enum acpi_keyp_type id,
239 acpi_tbl_entry_handler_arg handler_arg, void *arg);
240 #else
> 241 static inline int acpi_table_parse_cedt(enum acpi_keyp_type id,
242 acpi_tbl_entry_handler_arg handler_arg,
243 void *arg)
244 {
245 return -EOPNOTSUPP;
246 }
247 #endif
248
--
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-08-11 17:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-11 17:47 [davejiang:cxl-ide 17/24] include/linux/acpi.h:241:19: error: conflicting types for 'acpi_table_parse_cedt'; have 'int(enum acpi_keyp_type, int (*)(union acpi_subtable_headers *, void *, const long unsigned int), void *)' 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.