[PATCH] smbios: Fix warning when building with clang
Tom Rini
trini at konsulko.com
Wed Nov 19 00:33:13 CET 2025
On Thu, 06 Nov 2025 17:28:38 -0600, Tom Rini wrote:
> When building with clang, we see warnings such as:
> error: field max_size within 'struct smbios_type7' is less aligned than
> 'union cache_size_word' and is usually due to 'struct smbios_type7'
> being packed, which can lead to unaligned accesses
> [-Werror,-Wunaligned-access]
> when building drivers/sysinfo/smbios.c. Resolve this error by packing
> the unions as well after verifying they are complete (16 or 32 bits).
>
> [...]
Applied to u-boot/master, thanks!
[1/1] smbios: Fix warning when building with clang
commit: 2d226a735e0e9df2c017259c72cfd569986db480
--
Tom
More information about the U-Boot
mailing list