diff options
| author | 2026-08-22 15:14:04 +0200 | |
|---|---|---|
| committer | 2026-08-30 19:51:11 +0200 | |
| commit | d9304a90eca5703ae8301415b417ad63ddd44d7f (patch) | |
| tree | 91fc1d29dd20977d84afac4a4cd0032bf7128bc8 /scripts/Makefile.thinlto | |
| parent | batman-adv: ensure u16 aligned mac address arrays on stack (diff) | |
batman-adv: ensure u16 aligned mac address in structs
An u8 array in structures have a natural alignment of only 1 byte. An
u8[ETH_ALEN] array must therefore be assumed to only be 1 byte aligned. But
many etherdevices.h functions are requiring a 2 byte (u16) alignment.
All these addresses were either on the start of a struct or after a struct
member which required at least an alignment of 2 byte. Still, annote all
u8[ETH_ALEN] arrays on the stack as __aligned(2) to make sure that this
assumption isn't broken by other modifications inside the structs.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
