Skip to content

Commit 5511147

Browse files
weiny2davejiang
authored andcommitted
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]>
1 parent df2a8f4 commit 5511147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/cxl-event.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ int cxl_cper_register_work(struct work_struct *work);
164164
int cxl_cper_unregister_work(struct work_struct *work);
165165
int cxl_cper_kfifo_get(struct cxl_cper_work_data *wd);
166166
#else
167-
static inline int cxl_cper_register_work(struct work_struct *work);
167+
static inline int cxl_cper_register_work(struct work_struct *work)
168168
{
169169
return 0;
170170
}
171171

172-
static inline int cxl_cper_unregister_work(struct work_struct *work);
172+
static inline int cxl_cper_unregister_work(struct work_struct *work)
173173
{
174174
return 0;
175175
}

0 commit comments

Comments
 (0)