• Stephen Boyd's avatar
    net: qrtr: Mark 'buf' as little endian · 3512a1ad
    Stephen Boyd authored
    Failure to mark this pointer as __le32 causes checkers like
    sparse to complain:
    
    net/qrtr/qrtr.c:274:16: warning: incorrect type in assignment (different base types)
    net/qrtr/qrtr.c:274:16:    expected unsigned int [unsigned] [usertype] <noident>
    net/qrtr/qrtr.c:274:16:    got restricted __le32 [usertype] <noident>
    net/qrtr/qrtr.c:275:16: warning: incorrect type in assignment (different base types)
    net/qrtr/qrtr.c:275:16:    expected unsigned int [unsigned] [usertype] <noident>
    net/qrtr/qrtr.c:275:16:    got restricted __le32 [usertype] <noident>
    net/qrtr/qrtr.c:276:16: warning: incorrect type in assignment (different base types)
    net/qrtr/qrtr.c:276:16:    expected unsigned int [unsigned] [usertype] <noident>
    net/qrtr/qrtr.c:276:16:    got restricted __le32 [usertype] <noident>
    
    Silence it.
    
    Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
    Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
    Acked-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3512a1ad
qrtr.c 21.6 KB