[sudeep-holla:wip/acpi_ffh_opregion 2/3] drivers/acpi/acpi_ffh.c:16:12: warning: no previous prototype for 'acpi_ffh_address_space_arch_setup'

From: kernel test robot
Date: Thu Jun 16 2022 - 08:34:10 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git wip/acpi_ffh_opregion
head: 0ca2d8d167ffa471639fc885ecd9ca010cb04deb
commit: 42de507063eebc8c7d728fbac4012e35c8b854df [2/3] ACPI: Implement a generic FFH Opregion handler
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220616/202206162019.SclXvEpW-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git/commit/?id=42de507063eebc8c7d728fbac4012e35c8b854df
git remote add sudeep-holla https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git
git fetch --no-tags sudeep-holla wip/acpi_ffh_opregion
git checkout 42de507063eebc8c7d728fbac4012e35c8b854df
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/acpi/ kernel/trace/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/acpi/acpi_ffh.c:16:12: warning: no previous prototype for 'acpi_ffh_address_space_arch_setup' [-Wmissing-prototypes]
16 | int __weak acpi_ffh_address_space_arch_setup(void *handler_ctxt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/acpi/acpi_ffh.c:22:12: warning: no previous prototype for 'acpi_ffh_address_space_arch_handler' [-Wmissing-prototypes]
22 | int __weak acpi_ffh_address_space_arch_handler(acpi_integer *value,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/acpi_ffh_address_space_arch_setup +16 drivers/acpi/acpi_ffh.c

15
> 16 int __weak acpi_ffh_address_space_arch_setup(void *handler_ctxt,
17 void **region_ctxt)
18 {
19 return -EOPNOTSUPP;
20 }
21
> 22 int __weak acpi_ffh_address_space_arch_handler(acpi_integer *value,
23 void *region_context)
24 {
25 return -EOPNOTSUPP;
26 }
27

--
0-DAY CI Kernel Test Service
https://01.org/lkp