Commit fda151d9feafc0e8418f23c716587c44394fcdbf
Committed by
Jens Axboe
1 parent
a038e25364
Exists in
master
and in
7 other branches
[PATCH] blktrace_api.h: endian annotations
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Jens Axboe <axboe@suse.de>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
include/linux/blktrace_api.h
... | ... | @@ -90,9 +90,9 @@ |
90 | 90 | * The remap event |
91 | 91 | */ |
92 | 92 | struct blk_io_trace_remap { |
93 | - u32 device; | |
93 | + __be32 device; | |
94 | 94 | u32 __pad; |
95 | - u64 sector; | |
95 | + __be64 sector; | |
96 | 96 | }; |
97 | 97 | |
98 | 98 | enum { |
... | ... | @@ -224,7 +224,7 @@ |
224 | 224 | struct bio *bio, unsigned int pdu) |
225 | 225 | { |
226 | 226 | struct blk_trace *bt = q->blk_trace; |
227 | - u64 rpdu = cpu_to_be64(pdu); | |
227 | + __be64 rpdu = cpu_to_be64(pdu); | |
228 | 228 | |
229 | 229 | if (likely(!bt)) |
230 | 230 | return; |