forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information
1 parent
b4d7124
commit e3ebf0d
Showing
3 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
* by Guenther Kelleter ([email protected]) | ||
*/ | ||
|
||
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters