Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1556134

Re: [PATCH] net: qrtr: Mark 'buf' as little endian

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] net: qrtr: Mark 'buf' as little endian
Date 2017-01-11 02:50 +0100
Message-ID <sYgd3-tK-7@gated-at.bofh.it> (permalink)
References <sXQLE-1uM-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Stephen Boyd <sboyd@codeaurora.org>
Date: Mon,  9 Jan 2017 14:31:58 -0800

> 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: Stephen Boyd <sboyd@codeaurora.org>

Applied, thanks.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] net: qrtr: Mark 'buf' as little endian Stephen Boyd <sboyd@codeaurora.org> - 2017-01-09 23:40 +0100
  Re: [PATCH] net: qrtr: Mark 'buf' as little endian Bjorn Andersson <bjorn.andersson@linaro.org> - 2017-01-10 00:10 +0100
  Re: [PATCH] net: qrtr: Mark 'buf' as little endian David Miller <davem@davemloft.net> - 2017-01-11 02:50 +0100

csiph-web