summaryrefslogtreecommitdiff
path: root/common/fmap.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-06-28 16:10:28 -0700
committerGerrit <chrome-bot@google.com>2012-06-28 17:40:39 -0700
commit2e0ae579909fe49bffd7db29992b5526b99f3a1e (patch)
tree21c97436cdb723fd2b067d0aa00f6f846c2b330f /common/fmap.c
parent3db49e8acfc61700f67926257cf895bf015f5b1b (diff)
downloadchrome-ec-2e0ae579909fe49bffd7db29992b5526b99f3a1e.tar.gz
Use __packed instead of __attribute__((packed))
The presubmit script for linux kernel style prefers the former. BUG=none TEST=none Change-Id: I0a0a1eb039f45975ada075c1302d868071a7cfb1 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/26361
Diffstat (limited to 'common/fmap.c')
-rw-r--r--common/fmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/fmap.c b/common/fmap.c
index a0bbf43472..5a06e29b4f 100644
--- a/common/fmap.c
+++ b/common/fmap.c
@@ -5,8 +5,9 @@
*/
#include <stddef.h>
-#include <stdint.h>
+
#include "board.h"
+#include "common.h"
#include "config.h"
#include "version.h"
@@ -25,7 +26,7 @@ typedef struct _FmapHeader {
uint32_t fmap_size;
char fmap_name[FMAP_NAMELEN];
uint16_t fmap_nareas;
-} __attribute__((packed)) FmapHeader;
+} __packed FmapHeader;
#define FMAP_AREA_STATIC (1 << 0) /* can be checksummed */
#define FMAP_AREA_COMPRESSED (1 << 1) /* may be compressed */
@@ -36,7 +37,7 @@ typedef struct _FmapAreaHeader {
uint32_t area_size;
char area_name[FMAP_NAMELEN];
uint16_t area_flags;
-} __attribute__((packed)) FmapAreaHeader;
+} __packed FmapAreaHeader;
#define NUM_EC_FMAP_AREAS 17