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/atari.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'block/partitions/atari.h') diff --git a/block/partitions/atari.h b/block/partitions/atari.h index fe2d32a89f366..f2ec43bfeec13 100644 --- a/block/partitions/atari.h +++ b/block/partitions/atari.h @@ -11,6 +11,8 @@ * by Guenther Kelleter (guenther@pool.informatik.rwth-aachen.de) */ +#include + struct partition_info { u8 flg; /* bit 0: active; bit 7: bootable */ @@ -29,6 +31,6 @@ struct rootsector u32 bsl_st; /* start of bad sector list */ u32 bsl_cnt; /* length of bad sector list */ u16 checksum; /* checksum for bootable disks */ -} __attribute__((__packed__)); +} __packed; int atari_partition(struct parsed_partitions *state); -- cgit v1.2.3