cxl/cper: Fix non-ACPI-APEI-GHES build
authorIra Weiny <ira.weiny@intel.com>
Wed, 1 May 2024 18:40:23 +0000 (11:40 -0700)
committerDave Jiang <dave.jiang@intel.com>
Thu, 2 May 2024 19:12:08 +0000 (12:12 -0700)
If ACPI_APEI_GHES is not configured the [un]register work functions are
not properly declared.

0day notices that the cxl_cper_register_work() declaration in the
CONFIG_ACPI_APEI_GHES=n is broken, fix it to be typical nop stub.

Reported-by: kernel test robot <lkp@intel.com>
Closes: http://lore.kernel.org/r/202405012230.6kXItWen-lkp@intel.com
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20240501-cper-fix-0day-v1-1-c0b0056eafbc@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
include/linux/cxl-event.h

index 855908792ef810b55526fbf5ddf30ef8954b3ac6..60b25020281ff38c6425a8e733b8c2f183c319ac 100644 (file)
@@ -164,12 +164,12 @@ int cxl_cper_register_work(struct work_struct *work);
 int cxl_cper_unregister_work(struct work_struct *work);
 int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd);
 #else
-static inline int cxl_cper_register_work(struct work_struct *work);
+static inline int cxl_cper_register_work(struct work_struct *work)
 {
        return 0;
 }
 
-static inline int cxl_cper_unregister_work(struct work_struct *work);
+static inline int cxl_cper_unregister_work(struct work_struct *work)
 {
        return 0;
 }