From e3ebf0d457039c857dfeb45434e3be9780dea499 Mon Sep 17 00:00:00 2001 From: Gideon Israel Dsouza Date: Mon, 17 Feb 2014 21:17:16 +0530 Subject: block: Use macros from compiler.h instead of __attribute__((...)) To increase compiler portability there are several macros defined in for various gcc __attribute((..)) constructs. I've made sure gcc these specific were replaced with the right macro and an #include was placed where needed. Signed-off-by: Gideon Israel Dsouza Signed-off-by: Jens Axboe --- block/partitions/karma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'block/partitions/karma.c') diff --git a/block/partitions/karma.c b/block/partitions/karma.c index 0ea19312706ba..9721fa589bb17 100644 --- a/block/partitions/karma.c +++ b/block/partitions/karma.c @@ -8,6 +8,7 @@ #include "check.h" #include "karma.h" +#include int karma_partition(struct parsed_partitions *state) { @@ -26,7 +27,7 @@ int karma_partition(struct parsed_partitions *state) } d_partitions[2]; u8 d_blank[208]; __le16 d_magic; - } __attribute__((packed)) *label; + } __packed *label; struct d_partition *p; data = read_part_sector(state, 0, §); -- cgit v1.2.3