mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
blktrace: fix endianness in get_pdu_int()
[ Upstream commit 71df3fd82e ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d578f98fa7
commit
545bafecc0
@@ -1262,7 +1262,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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user