aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Weiny <[email protected]>2024-05-01 11:40:23 -0700
committerDave Jiang <[email protected]>2024-05-02 12:12:08 -0700
commit55111470b4416a6225abfdb4e1f0b8a8c8c52fdc (patch)
tree2406ee28403907476bfbf85393f3097856c93433
parentdf2a8f4b444f92152a9e981d9b0eb0776130892a (diff)
cxl/cper: Fix non-ACPI-APEI-GHES build
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 <[email protected]> Closes: http://lore.kernel.org/r/[email protected] Reviewed-by: Dan Williams <[email protected]> Signed-off-by: Ira Weiny <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dave Jiang <[email protected]>
-rw-r--r--include/linux/cxl-event.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/cxl-event.h b/include/linux/cxl-event.h
index 855908792ef8..60b25020281f 100644
--- a/include/linux/cxl-event.h
+++ b/include/linux/cxl-event.h
@@ -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;
}