From: kernel test robot <lkp@intel.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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 *)'
Date: Sat, 12 Aug 2023 01:47:46 +0800 [thread overview]
Message-ID: <202308120107.ozNASHhc-lkp@intel.com> (raw)
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
reply other threads:[~2023-08-11 17:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202308120107.ozNASHhc-lkp@intel.com \
--to=lkp@intel.com \
--cc=dave.jiang@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.