Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sudeep Holla <sudeep.holla@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [sudeep-holla:b4/acpi_scmi_pcc 19/23] include/acpi/acpi_bus.h:29:28: warning: declaration of 'union acpi_object' will not be visible outside of this function
Date: Thu, 02 Jul 2026 22:18:12 +0800	[thread overview]
Message-ID: <202607022235.pnx44b9j-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git b4/acpi_scmi_pcc
head:   c1daed90f65670f1d0231c3ab8a569b682181b2b
commit: 7a2657c9e1f143ed73c88d292c22c5225720d100 [19/23] firmware: arm_scmi: Fall back to ACPI HID when "compatible" is absent
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20260702/202607022235.pnx44b9j-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 0a2fb2a2269da0e2a3e230beb6cad39ca314db33)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607022235.pnx44b9j-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/202607022235.pnx44b9j-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/firmware/arm_scmi/driver.c:19:
   include/acpi/acpi_bus.h:24:2: error: unknown type name 'acpi_handle'
      24 |         acpi_handle *handles;
         |         ^
   include/acpi/acpi_bus.h:28:1: error: unknown type name 'acpi_status'
      28 | acpi_status
         | ^
>> include/acpi/acpi_bus.h:29:28: warning: declaration of 'union acpi_object' will not be visible outside of this function [-Wvisibility]
      29 | acpi_extract_package(union acpi_object *package,
         |                            ^
>> include/acpi/acpi_bus.h:30:15: warning: declaration of 'struct acpi_buffer' will not be visible outside of this function [-Wvisibility]
      30 |                      struct acpi_buffer *format, struct acpi_buffer *buffer);
         |                             ^
   include/acpi/acpi_bus.h:31:1: error: unknown type name 'acpi_status'
      31 | acpi_status
         | ^
   include/acpi/acpi_bus.h:32:23: error: unknown type name 'acpi_handle'
      32 | acpi_evaluate_integer(acpi_handle handle,
         |                       ^
   include/acpi/acpi_bus.h:33:9: error: unknown type name 'acpi_string'
      33 |                       acpi_string pathname,
         |                       ^
>> include/acpi/acpi_bus.h:34:16: warning: declaration of 'struct acpi_object_list' will not be visible outside of this function [-Wvisibility]
      34 |                       struct acpi_object_list *arguments, unsigned long long *data);
         |                              ^
   include/acpi/acpi_bus.h:35:30: error: unknown type name 'acpi_handle'
      35 | bool acpi_evaluate_reference(acpi_handle handle, acpi_string pathname,
         |                              ^
   include/acpi/acpi_bus.h:35:50: error: unknown type name 'acpi_string'
      35 | bool acpi_evaluate_reference(acpi_handle handle, acpi_string pathname,
         |                                                  ^
   include/acpi/acpi_bus.h:36:16: warning: declaration of 'struct acpi_object_list' will not be visible outside of this function [-Wvisibility]
      36 |                              struct acpi_object_list *arguments,
         |                                     ^
   include/acpi/acpi_bus.h:43:22: error: unknown type name 'acpi_handle'
      43 | bool acpi_device_dep(acpi_handle target, acpi_handle match);
         |                      ^
   include/acpi/acpi_bus.h:43:42: error: unknown type name 'acpi_handle'
      43 | bool acpi_device_dep(acpi_handle target, acpi_handle match);
         |                                          ^
   include/acpi/acpi_bus.h:44:1: error: unknown type name 'acpi_status'
      44 | acpi_status
         | ^
   include/acpi/acpi_bus.h:45:19: error: unknown type name 'acpi_handle'
      45 | acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code,
         |                   ^
   include/acpi/acpi_bus.h:46:12: warning: declaration of 'struct acpi_buffer' will not be visible outside of this function [-Wvisibility]
      46 |                   struct acpi_buffer *status_buf);
         |                          ^
   include/acpi/acpi_bus.h:48:22: error: unknown type name 'acpi_handle'
      48 | bool acpi_has_method(acpi_handle handle, char *name);
         |                      ^
   include/acpi/acpi_bus.h:49:1: error: unknown type name 'acpi_status'
      49 | acpi_status acpi_execute_simple_method(acpi_handle handle, char *method,
         | ^
   include/acpi/acpi_bus.h:49:40: error: unknown type name 'acpi_handle'
      49 | acpi_status acpi_execute_simple_method(acpi_handle handle, char *method,
         |                                        ^
   include/acpi/acpi_bus.h:51:1: error: unknown type name 'acpi_status'
      51 | acpi_status acpi_evaluate_ej0(acpi_handle handle);
         | ^
   include/acpi/acpi_bus.h:51:31: error: unknown type name 'acpi_handle'
      51 | acpi_status acpi_evaluate_ej0(acpi_handle handle);
         |                               ^
   include/acpi/acpi_bus.h:52:1: error: unknown type name 'acpi_status'
      52 | acpi_status acpi_evaluate_lck(acpi_handle handle, int lock);
         | ^
   include/acpi/acpi_bus.h:52:31: error: unknown type name 'acpi_handle'
      52 | acpi_status acpi_evaluate_lck(acpi_handle handle, int lock);
         |                               ^
   include/acpi/acpi_bus.h:53:1: error: unknown type name 'acpi_status'
      53 | acpi_status acpi_evaluate_reg(acpi_handle handle, u8 space_id, u32 function);
         | ^
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   5 warnings and 20 errors generated.


vim +29 include/acpi/acpi_bus.h

^1da177e4c3f41 Linus Torvalds    2005-04-16  26  
^1da177e4c3f41 Linus Torvalds    2005-04-16  27  /* acpi_utils.h */
^1da177e4c3f41 Linus Torvalds    2005-04-16  28  acpi_status
4be44fcd3bf648 Len Brown         2005-08-05 @29  acpi_extract_package(union acpi_object *package,
4be44fcd3bf648 Len Brown         2005-08-05 @30  		     struct acpi_buffer *format, struct acpi_buffer *buffer);
^1da177e4c3f41 Linus Torvalds    2005-04-16  31  acpi_status
4be44fcd3bf648 Len Brown         2005-08-05  32  acpi_evaluate_integer(acpi_handle handle,
^1da177e4c3f41 Linus Torvalds    2005-04-16  33  		      acpi_string pathname,
27663c5855b10a Matthew Wilcox    2008-10-10 @34  		      struct acpi_object_list *arguments, unsigned long long *data);
6909e0f322b052 Rafael J. Wysocki 2023-12-08  35  bool acpi_evaluate_reference(acpi_handle handle, acpi_string pathname,
^1da177e4c3f41 Linus Torvalds    2005-04-16  36  			     struct acpi_object_list *arguments,
^1da177e4c3f41 Linus Torvalds    2005-04-16  37  			     struct acpi_handle_list *list);
2e57d10a659156 Rafael J. Wysocki 2023-09-27  38  bool acpi_handle_list_equal(struct acpi_handle_list *list1,
2e57d10a659156 Rafael J. Wysocki 2023-09-27  39  			    struct acpi_handle_list *list2);
2e57d10a659156 Rafael J. Wysocki 2023-09-27  40  void acpi_handle_list_replace(struct acpi_handle_list *dst,
2e57d10a659156 Rafael J. Wysocki 2023-09-27  41  			      struct acpi_handle_list *src);
2e57d10a659156 Rafael J. Wysocki 2023-09-27  42  void acpi_handle_list_free(struct acpi_handle_list *list);
d70d141bb15f32 Rafael J. Wysocki 2023-12-14  43  bool acpi_device_dep(acpi_handle target, acpi_handle match);
275c58d77062bb Toshi Kani        2012-05-23  44  acpi_status
05730c1952787f Jiang Liu         2014-02-19  45  acpi_evaluate_ost(acpi_handle handle, u32 source_event, u32 status_code,
05730c1952787f Jiang Liu         2014-02-19  46  		  struct acpi_buffer *status_buf);
^1da177e4c3f41 Linus Torvalds    2005-04-16  47  

:::::: The code at line 29 was first introduced by commit
:::::: 4be44fcd3bf648b782f4460fd06dfae6c42ded4b [ACPI] Lindent all ACPI files

:::::: TO: Len Brown <len.brown@intel.com>
:::::: CC: Len Brown <len.brown@intel.com>

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

                 reply	other threads:[~2026-07-02 14:19 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=202607022235.pnx44b9j-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sudeep.holla@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox