From: Chaitanya Kulkarni Date: Thu, 4 Jun 2020 07:13:29 +0000 (-0700) Subject: blktrace: fix endianness in get_pdu_int() X-Git-Tag: v5.4.49~89 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=545bafecc0f21671cfcf5126b610fd293ce657db;p=users%2Fdwmw2%2Flinux.git blktrace: fix endianness in get_pdu_int() [ Upstream commit 71df3fd82e7cccec7b749a8607a4662d9f7febdd ] In function get_pdu_len() replace variable type from __u64 to __be64. This fixes sparse warning. Signed-off-by: Chaitanya Kulkarni Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c index 9e02e1ce0ac01..23e5f86c99215 100644 --- a/kernel/trace/blktrace.c +++ b/kernel/trace/blktrace.c @@ -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); }