summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWANG Chao <chaowang@redhat.com>2013-09-05 17:21:21 +0800
committerSimon Horman <horms@verge.net.au>2013-10-16 16:18:09 +0900
commit6d4e7f0c9679a7e6742b85ca09e2f29ec6c45ee5 (patch)
tree6cbcfc03feb9e73d8fdbe2b4d8aecf2cbd8ad0a8
parent6bd7a0e8caa98eea328a8491ce099f9314c2af44 (diff)
downloadkexec-tools-6d4e7f0c9679a7e6742b85ca09e2f29ec6c45ee5.tar.gz
Remove PACKED macro and use __attribute__((packed)) directly
People are not always aware of PACKED macro and tend to __attribute__((packed)) more directly. So let's remove PACKED to unify things. Signed-off-by: WANG Chao <chaowang@redhat.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--include/x86/x86-linux.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/x86/x86-linux.h b/include/x86/x86-linux.h
index 0949dc2..c41e5f2 100644
--- a/include/x86/x86-linux.h
+++ b/include/x86/x86-linux.h
@@ -12,8 +12,6 @@
#ifndef ASSEMBLY
-#define PACKED __attribute__((packed))
-
#ifndef E820_RAM
struct e820entry {
uint64_t addr; /* start of memory segment */
@@ -23,7 +21,7 @@ struct e820entry {
#define E820_RESERVED 2
#define E820_ACPI 3 /* usable as RAM once ACPI tables have been read */
#define E820_NVS 4
-} PACKED;
+} __attribute__((packed));
#endif
/* FIXME expand on drive_info_)struct... */
@@ -255,7 +253,7 @@ struct x86_linux_header {
uint64_t pref_address; /* 0x258 */
uint32_t init_size; /* 0x260 */
uint32_t handover_offset; /* 0x264 */
-} PACKED;
+} __attribute__((packed));
#endif /* ASSEMBLY */