diff options
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2020-06-04 00:13:29 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-04 21:23:38 -0600 |
commit | 71df3fd82e7cccec7b749a8607a4662d9f7febdd (patch) | |
tree | eac975f4f1248717aad342c2325694139bea2cfe /kernel/trace/blktrace.c | |
parent | 48bc3cd3e07a1486f45d9971c75d6090976c3b1b (diff) | |
download | linux-71df3fd82e7cccec7b749a8607a4662d9f7febdd.tar.bz2 |
blktrace: fix endianness in get_pdu_int()
In function get_pdu_len() replace variable type from __u64 to
__be64. This fixes sparse warning.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/trace/blktrace.c')
-rw-r--r-- | kernel/trace/blktrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index e2013bd0e2a6..f857b4684beb 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c @@ -1256,7 +1256,7 @@ static inline __u16 t_error(const struct trace_entry *ent) static __u64 get_pdu_int(const struct trace_entry *ent, bool has_cg) { - const __u64 *val = pdu_start(ent, has_cg); + const __be64 *val = pdu_start(ent, has_cg); return be64_to_cpu(*val); } |