cxl/cper: Fix non-ACPI-APEI-GHES build
PATCH 1/1 cxl/cper: Fix non-ACPI-APEI-GHES build
If ACPI_APEI_GHES is not configured the [un]register work functions are not properly declared.
Fix copy paste error.
Reported-by kernel test robot <[email protected]>
Signed-off-by Ira Weiny <[email protected]>
--- include/linux/cxl-event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/cxl-event.h +2 -2
@@ -152,12 +152,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 ; }
---
base-commit: c19ac30eda3a1d14d4883de0ea214b6c5c96a9b4
change-id: 20240501-cper-fix-0day-c03ad861bbc3
Best regards,
Signature · 1 line
Ira Weiny <[email protected]>
Quoted 4 lines · Ira Weiny
If
ACPI_APEI_GHESis not configured the [un]register work functions are not properly declared.Fix copy paste error.
Copy paste? I would just say:
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.
Quoted 2 lines
Reported-by kernel test robot <[email protected]>
Checkpatch asks for Closes: tags these days:
With that,
Reviewed-by Dan Williams <[email protected]>