Skip to content

Commit 71df3fd

Browse files
ChaitanayaKulkarniaxboe
authored andcommitted
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>
1 parent 48bc3cd commit 71df3fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/trace/blktrace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ static inline __u16 t_error(const struct trace_entry *ent)
12561256

12571257
static __u64 get_pdu_int(const struct trace_entry *ent, bool has_cg)
12581258
{
1259-
const __u64 *val = pdu_start(ent, has_cg);
1259+
const __be64 *val = pdu_start(ent, has_cg);
12601260
return be64_to_cpu(*val);
12611261
}
12621262

0 commit comments

Comments
 (0)