projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
049763d
)
include/linux/unaligned/packed_struct.h: use __packed
author
Andrew Morton
<
[email protected]
>
Thu, 13 Jan 2011 00:59:37 +0000
(16:59 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 13 Jan 2011 16:03:08 +0000
(08:03 -0800)
Cc: Will Newton <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/unaligned/packed_struct.h
patch
|
blob
|
history
diff --git
a/include/linux/unaligned/packed_struct.h
b/include/linux/unaligned/packed_struct.h
index c9a6abd972a142e7aea4129da8a8e5b9bc64b6ce..c0d817de4df24ec105aea734c85b6513a40688f5 100644
(file)
--- a/
include/linux/unaligned/packed_struct.h
+++ b/
include/linux/unaligned/packed_struct.h
@@
-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)
{