Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

include/linux/unaligned/packed_struct.h: use __packed

Cc: Will Newton <will.newton@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andrew Morton and committed by
Linus Torvalds
17253103 049763db

+3 -3
+3 -3
include/linux/unaligned/packed_struct.h
··· 3 3 4 4 #include <linux/kernel.h> 5 5 6 - struct __una_u16 { u16 x; } __attribute__((packed)); 7 - struct __una_u32 { u32 x; } __attribute__((packed)); 8 - struct __una_u64 { u64 x; } __attribute__((packed)); 6 + struct __una_u16 { u16 x; } __packed; 7 + struct __una_u32 { u32 x; } __packed; 8 + struct __una_u64 { u64 x; } __packed; 9 9 10 10 static inline u16 __get_unaligned_cpu16(const void *p) 11 11 {