summaryrefslogtreecommitdiff
path: root/block/partitions/atari.h
diff options
context:
space:
mode:
authorGideon Israel Dsouza <gidisrael@gmail.com>2014-02-17 21:17:16 +0530
committerJens Axboe <axboe@fb.com>2014-02-18 12:20:01 -0800
commite3ebf0d457039c857dfeb45434e3be9780dea499 (patch)
treebe1abf341e59e52c6cdbc92c5e7af02df6cdc942 /block/partitions/atari.h
parentb4d7124b2f2e29541e5c8815bd84ea55158dd730 (diff)
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/atari.h')
-rw-r--r--block/partitions/atari.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/block/partitions/atari.h b/block/partitions/atari.h
index fe2d32a89f36..f2ec43bfeec1 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 <linux/compiler.h>
+
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);