[sudeep-holla:v5.15/pcc_type3 15/16] drivers/acpi/pcc_opregion.c:30:2: error: implicit declaration of function 'acpi_ut_status_exit'

From: kernel test robot
Date: Fri Oct 29 2021 - 21:54:39 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git v5.15/pcc_type3
head: e658e18863fdb31547d280d6446d97b986a66a6a
commit: 53fb88f932935375cd221ddbac3d9b7751718005 [15/16] ACPI: Add support for PCC opregion
config: i386-randconfig-c001-20211029 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git/commit/?id=53fb88f932935375cd221ddbac3d9b7751718005
git remote add sudeep-holla https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git
git fetch --no-tags sudeep-holla v5.15/pcc_type3
git checkout 53fb88f932935375cd221ddbac3d9b7751718005
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386

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

All errors (new ones prefixed by >>):

>> drivers/acpi/pcc_opregion.c:30:2: error: implicit declaration of function 'acpi_ut_status_exit' [-Werror,-Wimplicit-function-declaration]
return_ACPI_STATUS(AE_NOT_IMPLEMENTED);
^
include/acpi/acoutput.h:398:19: note: expanded from macro 'return_ACPI_STATUS'
ACPI_TRACE_EXIT (acpi_ut_status_exit, acpi_status, status)
^
drivers/acpi/pcc_opregion.c:30:2: note: did you mean 'acpi_irq_stats_init'?
include/acpi/acoutput.h:398:19: note: expanded from macro 'return_ACPI_STATUS'
ACPI_TRACE_EXIT (acpi_ut_status_exit, acpi_status, status)
^
include/linux/acpi.h:320:6: note: 'acpi_irq_stats_init' declared here
void acpi_irq_stats_init(void);
^
>> drivers/acpi/pcc_opregion.c:30:2: error: use of undeclared identifier '_acpi_module_name'
return_ACPI_STATUS(AE_NOT_IMPLEMENTED);
^
include/acpi/acoutput.h:398:2: note: expanded from macro 'return_ACPI_STATUS'
ACPI_TRACE_EXIT (acpi_ut_status_exit, acpi_status, status)
^
include/acpi/acoutput.h:375:13: note: expanded from macro 'ACPI_TRACE_EXIT'
function (ACPI_DEBUG_PARAMETERS, _param); \
^
include/acpi/acoutput.h:258:36: note: expanded from macro 'ACPI_DEBUG_PARAMETERS'
__LINE__, ACPI_GET_FUNCTION_NAME, _acpi_module_name, _COMPONENT
^
>> drivers/acpi/pcc_opregion.c:30:2: error: use of undeclared identifier '_COMPONENT'
include/acpi/acoutput.h:398:2: note: expanded from macro 'return_ACPI_STATUS'
ACPI_TRACE_EXIT (acpi_ut_status_exit, acpi_status, status)
^
include/acpi/acoutput.h:375:13: note: expanded from macro 'ACPI_TRACE_EXIT'
function (ACPI_DEBUG_PARAMETERS, _param); \
^
include/acpi/acoutput.h:258:55: note: expanded from macro 'ACPI_DEBUG_PARAMETERS'
__LINE__, ACPI_GET_FUNCTION_NAME, _acpi_module_name, _COMPONENT
^
3 errors generated.


vim +/acpi_ut_status_exit +30 drivers/acpi/pcc_opregion.c

23
24 static acpi_status
25 acpi_pcc_opregion_space_handler(u32 function, acpi_physical_address addr,
26 u32 bits, acpi_integer *value,
27 void *handler_context, void *region_context)
28 {
29 pr_info("%s: %llx\n", __func__, addr);
> 30 return_ACPI_STATUS(AE_NOT_IMPLEMENTED);
31 }
32

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip