Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17253103 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

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



Cc: Will Newton <will.newton@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 049763db
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3,9 +3,9 @@

#include <linux/kernel.h>

struct __una_u16 { u16 x; } __attribute__((packed));
struct __una_u32 { u32 x; } __attribute__((packed));
struct __una_u64 { u64 x; } __attribute__((packed));
struct __una_u16 { u16 x; } __packed;
struct __una_u32 { u32 x; } __packed;
struct __una_u64 { u64 x; } __packed;

static inline u16 __get_unaligned_cpu16(const void *p)
{