lkml.org 
[lkml]   [2020]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH AUTOSEL 5.7 340/388] blktrace: fix endianness in get_pdu_int()
    Date
    From: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>

    [ Upstream commit 71df3fd82e7cccec7b749a8607a4662d9f7febdd ]

    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>
    ---
    kernel/trace/blktrace.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c
    index c6d59a457f50..cba2093edee2 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);
    }

    --
    2.25.1
    \
     
     \ /
      Last update: 2020-06-18 04:32    [W:2.285 / U:0.784 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site