summaryrefslogtreecommitdiffstats
path: root/block/partitions/karma.c
diff options
context:
space:
mode:
authorGideon Israel Dsouza <gidisrael@gmail.com>2014-02-17 16:47:16 +0100
committerJens Axboe <axboe@fb.com>2014-02-18 21:20:01 +0100
commite3ebf0d457039c857dfeb45434e3be9780dea499 (patch)
treebe1abf341e59e52c6cdbc92c5e7af02df6cdc942 /block/partitions/karma.c
parentbio: don't write "bio: create slab" messages to syslog (diff)
downloadlinux-e3ebf0d457039c857dfeb45434e3be9780dea499.tar.xz
linux-e3ebf0d457039c857dfeb45434e3be9780dea499.zip
block: Use macros from compiler.h instead of __attribute__((...))
To increase compiler portability there are several macros defined in <linux/compiler.h> for various gcc __attribute((..)) constructs. I've made sure gcc these specific were replaced with the right macro and an #include <linux/compiler.h> was placed where needed. Signed-off-by: Gideon Israel Dsouza <gidisrael@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/partitions/karma.c')
-rw-r--r--block/partitions/karma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/partitions/karma.c b/block/partitions/karma.c
index 0ea19312706b..9721fa589bb1 100644
--- a/block/partitions/karma.c
+++ b/block/partitions/karma.c
@@ -8,6 +8,7 @@
#include "check.h"
#include "karma.h"
+#include <linux/compiler.h>
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, &sect);