aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-05-08 00:07:54 +0200
committerArnd Bergmann <arnd@arndb.de>2021-05-17 13:30:29 +0200
commitdd979d7a08adb473744f2e9d4bbaddb039dc39dc (patch)
treee0a55586f1abf6778bab888fd641300b7327c275 /net
parentpartitions: msdos: fix one-byte get_unaligned() (diff)
downloadlinux-dev-dd979d7a08adb473744f2e9d4bbaddb039dc39dc.tar.xz
linux-dev-dd979d7a08adb473744f2e9d4bbaddb039dc39dc.zip
apparmor: use get_unaligned() only for multi-byte words
Using get_unaligned() on a u8 pointer is pointless, and will result in a compiler warning after a planned cleanup: In file included from arch/x86/include/generated/asm/unaligned.h:1, from security/apparmor/policy_unpack.c:16: security/apparmor/policy_unpack.c: In function 'unpack_u8': include/asm-generic/unaligned.h:13:15: error: 'packed' attribute ignored for field of type 'u8' {aka 'unsigned char'} [-Werror=attributes] 13 | const struct { type x __packed; } *__pptr = (typeof(__pptr))(ptr); \ | ^ Simply dereference this pointer directly. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions