oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [weiny2:cxl-cper-testing 3/5] include/linux/cxl-event.h:155:19: warning: 'cxl_cper_register_work' used but never defined
@ 2024-05-01 14:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-01 14:48 UTC (permalink / raw
  To: Ira Weiny; +Cc: oe-kbuild-all, Dan Williams

tree:   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/202405012230.6kXItWen-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240501/202405012230.6kXItWen-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/202405012230.6kXItWen-lkp@intel.com/

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  #endif
f64693ceeed628d 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 <ira.weiny@intel.com>
:::::: CC: Ira Weiny <ira.weiny@intel.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-01 14:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01 14:48 [weiny2:cxl-cper-testing 3/5] include/linux/cxl-event.h:155:19: warning: 'cxl_cper_register_work' used but never defined kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).