summaryrefslogtreecommitdiff
path: root/include/stdio_dev.h
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-11-06 17:28:38 -0600
committerTom Rini <[email protected]>2025-11-18 15:53:39 -0600
commit2d226a735e0e9df2c017259c72cfd569986db480 (patch)
tree7981a2d229e554e7b3ed63e183874677a1d5e1f9 /include/stdio_dev.h
parenta70b4f5cae7ebe0e7d9926645635f90994f6257f (diff)
smbios: Fix warning when building with clang
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). Reviewed-by: Raymond Mao <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]> Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'include/stdio_dev.h')
0 files changed, 0 insertions, 0 deletions