forked from Minki/linux
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>
This commit is contained in:
parent
48bc3cd3e0
commit
71df3fd82e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user