include/linux/cxl-event.h:155:19: warning: 'cxl_cper_register_work' used but never defined
kernel test robot
build bottree: https://github.com/weiny2/linux-kernel.git cxl-cper-testing head: 9561664438db543f4d61ee0dde4fa9722239fb13 commit: 0ed9b6f0a655309877bda7c0c56150d14ce0287f [3/5] cxl/pci: Process CPER events config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20240501/[email protected]/config) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240501/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
In file included from drivers/cxl/cxlmem.h:9,
from drivers/cxl/pci.c:14:
include/linux/cxl-event.h:156:1: error: expected identifier or '(' before '{' token
156 | {
| ^
include/linux/cxl-event.h:161:1: error: expected identifier or '(' before '{' token
161 | {
| ^
>> include/linux/cxl-event.h:155:19: warning: 'cxl_cper_register_work' used but never defined
155 | static inline int cxl_cper_register_work(struct work_struct *work);
| ^~~~~~~~~~~~~~~~~~~~~~
>> include/linux/cxl-event.h:160:19: warning: 'cxl_cper_unregister_work' used but never defined
160 | static inline int cxl_cper_unregister_work(struct work_struct *work);
| ^~~~~~~~~~~~~~~~~~~~~~~~vim +/cxl_cper_register_work +155 include/linux/cxl-event.h
f64693ceeed628d Ira Weiny 2023-07-13 149
f64693ceeed628d Ira Weiny 2023-07-13 150 #ifdef CONFIG_ACPI_APEI_GHES
f64693ceeed628d Ira Weiny 2023-07-13 151 int cxl_cper_register_work(struct work_struct *work);
f64693ceeed628d Ira Weiny 2023-07-13 152 int cxl_cper_unregister_work(struct work_struct *work);
f64693ceeed628d Ira Weiny 2023-07-13 153 int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd);
f64693ceeed628d Ira Weiny 2023-07-13 154 #else
f64693ceeed628d Ira Weiny 2023-07-13 @155 static inline int cxl_cper_register_work(struct work_struct *work);
f64693ceeed628d Ira Weiny 2023-07-13 156 {
f64693ceeed628d Ira Weiny 2023-07-13 157 return 0;
f64693ceeed628d Ira Weiny 2023-07-13 158 }
f64693ceeed628d Ira Weiny 2023-07-13 159
f64693ceeed628d Ira Weiny 2023-07-13 @160 static inline int cxl_cper_unregister_work(struct work_struct *work);
f64693ceeed628d Ira Weiny 2023-07-13 161 {
f64693ceeed628d Ira Weiny 2023-07-13 162 return 0;
f64693ceeed628d Ira Weiny 2023-07-13 163 }
f64693ceeed628d Ira Weiny 2023-07-13 164 static inline int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd)
f64693ceeed628d Ira Weiny 2023-07-13 165 {
f64693ceeed628d Ira Weiny 2023-07-13 166 return 0;
f64693ceeed628d Ira Weiny 2023-07-13 167 }
f64693ceeed628d Ira Weiny 2023-07-13 168 #endiff64693ceeed628d Ira Weiny 2023-07-13 169
:::::: The code at line 155 was first introduced by commit
:::::: f64693ceeed628d8036c8ac75f655bb3292d5bcf acpi/ghes: Process CXL Component Events
:::::: TO: Ira Weiny <[email protected]>
:::::: CC: Ira Weiny <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki