提交 fda151d9 编写于 作者: A Alexey Dobriyan 提交者: Jens Axboe

[PATCH] blktrace_api.h: endian annotations

Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NJens Axboe <axboe@suse.de>
上级 a038e253
......@@ -90,9 +90,9 @@ struct blk_io_trace {
* The remap event
*/
struct blk_io_trace_remap {
u32 device;
__be32 device;
u32 __pad;
u64 sector;
__be64 sector;
};
enum {
......@@ -224,7 +224,7 @@ static inline void blk_add_trace_pdu_int(struct request_queue *q, u32 what,
struct bio *bio, unsigned int pdu)
{
struct blk_trace *bt = q->blk_trace;
u64 rpdu = cpu_to_be64(pdu);
__be64 rpdu = cpu_to_be64(pdu);
if (likely(!bt))
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册