Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rasdaemon: Fix mem_fail_event build breakage #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AvaNaik
Copy link
Contributor

@AvaNaik AvaNaik commented Aug 19, 2024

Commit 566a526 ("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: 566a526 ("add mem_fail_event trigger")

Commit 566a526 ("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: 566a526 ("add mem_fail_event trigger")
Signed-off-by: Avadhut Naik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant