mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
char: moxa.c sparse annotation
The only use is to pass this to le16_to_cpu, declare as such drivers/char/moxa.c:548:11: warning: cast to restricted __le16. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
bc20589bf1
commit
b46f69cd24
@ -513,7 +513,7 @@ static int moxa_real_load_code(struct moxa_board_conf *brd, const void *ptr,
|
||||
size_t len)
|
||||
{
|
||||
void __iomem *baseAddr = brd->basemem;
|
||||
const u16 *uptr = ptr;
|
||||
const __le16 *uptr = ptr;
|
||||
size_t wlen, len2, j;
|
||||
unsigned long key, loadbuf, loadlen, checksum, checksum_ok;
|
||||
unsigned int i, retry;
|
||||
|
Loading…
Reference in New Issue
Block a user