]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
rasdaemon: Fix mem_fail_event build breakage
authorAvadhut Naik <avadhut.naik@amd.com>
Fri, 16 Aug 2024 18:10:40 +0000 (18:10 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 Nov 2024 12:25:43 +0000 (13:25 +0100)
commitfdf86f1e8973ca12846e0c25e54ff763e2f43d76
treeeecbe2dc5b12fd36c30d46b80334f8631d0d9b02
parentc3088842e882ec923c5cbaad87124599c3ea0f94
rasdaemon: Fix mem_fail_event build breakage

Commit 566a52622b1d ("add mem_fail_event trigger") introduces an event
trigger for a memory failure event.

However, if the rasdaemon is not configured with enable-memory-failure,
the setup function of the trigger, mem_fail_event_trigger_setup(), will
result in an undefined reference linker error when called through
setup_event_trigger().

Ensure that the setup function for the trigger is called only when the
rasdaemon has been configured with enable-memory-failure.

Fixes: 566a52622b1d ("add mem_fail_event trigger")
Signed-off-by: Avadhut Naik <avadhut.naik@amd.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
ras-events.c