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

efivar-types.h: fix alignment of efi_guid_t #274

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

Conversation

meator
Copy link

@meator meator commented Jan 10, 2025

The current alignment of 1 can lead to a lot of Walign-mismatch warnings in C++. This behavior also doesn't seem to be up to spec, as evidenced by a similar change made in the Linux ARM kernel:

https://patchwork.kernel.org/project/linux-arm-kernel/patch/20190108152829.11579-1-ard.biesheuvel@linaro.org/

I have not yet conducted testing, but I intend to test my project (which depends on libefivar) as well as efibootmgr.

All credit for this discovery should go to Shell from #C++-general on Libera.

The current alignment of 1 can lead to a lot of Walign-mismatch warnings
in C++. This behavior also doesn't seem to be up to spec, as evidenced
by a similar change made in the Linux ARM kernel:

https://patchwork.kernel.org/project/linux-arm-kernel/patch/20190108152829.11579-1-ard.biesheuvel@linaro.org/

Signed-off-by: meator <meator.dev@gmail.com>
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