diff options
Diffstat (limited to 'fs/befs/endian.h')
-rw-r--r-- | fs/befs/endian.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/befs/endian.h b/fs/befs/endian.h index 979c543e6c58..e254a20869f4 100644 --- a/fs/befs/endian.h +++ b/fs/befs/endian.h | |||
@@ -68,26 +68,26 @@ cpu_to_fs16(const struct super_block *sb, u16 n) | |||
68 | /* Composite types below here */ | 68 | /* Composite types below here */ |
69 | 69 | ||
70 | static inline befs_block_run | 70 | static inline befs_block_run |
71 | fsrun_to_cpu(const struct super_block *sb, befs_block_run n) | 71 | fsrun_to_cpu(const struct super_block *sb, befs_disk_block_run n) |
72 | { | 72 | { |
73 | befs_block_run run; | 73 | befs_block_run run; |
74 | 74 | ||
75 | if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) { | 75 | if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) { |
76 | run.allocation_group = le32_to_cpu(n.allocation_group); | 76 | run.allocation_group = le32_to_cpu((__force __le32)n.allocation_group); |
77 | run.start = le16_to_cpu(n.start); | 77 | run.start = le16_to_cpu((__force __le16)n.start); |
78 | run.len = le16_to_cpu(n.len); | 78 | run.len = le16_to_cpu((__force __le16)n.len); |
79 | } else { | 79 | } else { |
80 | run.allocation_group = be32_to_cpu(n.allocation_group); | 80 | run.allocation_group = be32_to_cpu((__force __be32)n.allocation_group); |
81 | run.start = be16_to_cpu(n.start); | 81 | run.start = be16_to_cpu((__force __be16)n.start); |
82 | run.len = be16_to_cpu(n.len); | 82 | run.len = be16_to_cpu((__force __be16)n.len); |
83 | } | 83 | } |
84 | return run; | 84 | return run; |
85 | } | 85 | } |
86 | 86 | ||
87 | static inline befs_block_run | 87 | static inline befs_disk_block_run |
88 | cpu_to_fsrun(const struct super_block *sb, befs_block_run n) | 88 | cpu_to_fsrun(const struct super_block *sb, befs_block_run n) |
89 | { | 89 | { |
90 | befs_block_run run; | 90 | befs_disk_block_run run; |
91 | 91 | ||
92 | if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) { | 92 | if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE) { |
93 | run.allocation_group = cpu_to_le32(n.allocation_group); | 93 | run.allocation_group = cpu_to_le32(n.allocation_group); |
@@ -102,7 +102,7 @@ cpu_to_fsrun(const struct super_block *sb, befs_block_run n) | |||
102 | } | 102 | } |
103 | 103 | ||
104 | static inline befs_data_stream | 104 | static inline befs_data_stream |
105 | fsds_to_cpu(const struct super_block *sb, befs_data_stream n) | 105 | fsds_to_cpu(const struct super_block *sb, befs_disk_data_stream n) |
106 | { | 106 | { |
107 | befs_data_stream data; | 107 | befs_data_stream data; |
108 | int i; | 108 | int i; |