diff options
| author | Sven Eckelmann <sven@narfation.org> | 2026-08-22 15:14:03 +0200 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2026-08-30 19:51:11 +0200 |
| commit | a5f7058bee1ec6d0df7a0dc20279775ee116f3fb (patch) | |
| tree | 53d9dc82d1b2db573f2cb9b502c9fdbb0ee6f026 /tools/lib/python/kdoc/python_version.py | |
| parent | 776c26254d2423e61a704af2d9ab28d39969dfdc (diff) | |
batman-adv: ensure u16 aligned mac address arrays on stack
An u8 array on the stack has a natural alignment of only 1 byte. An
u8[ETH_ALEN] array on the stack must therefore be assumed to only be 1 byte
aligned. But many etherdevices.h functions are requiring a 2 byte (u16)
alignment.
Annote all u8[ETH_ALEN] arrays on the stack as __aligned(2) to make sure
that the compiler takes care of aligning it correctly.
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/patchset/20260821094813.201800-1-sw%40simonwunderlich.de?part=5
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
