diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-16 01:04:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:47 -0400 |
commit | b46f69cd24b9020433f8f153e7d9194b5bfdf5e2 (patch) | |
tree | 2d65e31fb64f4c90b2995f1183a45187a1c37fe6 /drivers | |
parent | bc20589bf1c63e4e8bee57855568458ba303306b (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/moxa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c index 5df4003ad873..12d327a2c9ba 100644 --- a/drivers/char/moxa.c +++ b/drivers/char/moxa.c | |||
@@ -513,7 +513,7 @@ static int moxa_real_load_code(struct moxa_board_conf *brd, const void *ptr, | |||
513 | size_t len) | 513 | size_t len) |
514 | { | 514 | { |
515 | void __iomem *baseAddr = brd->basemem; | 515 | void __iomem *baseAddr = brd->basemem; |
516 | const u16 *uptr = ptr; | 516 | const __le16 *uptr = ptr; |
517 | size_t wlen, len2, j; | 517 | size_t wlen, len2, j; |
518 | unsigned long key, loadbuf, loadlen, checksum, checksum_ok; | 518 | unsigned long key, loadbuf, loadlen, checksum, checksum_ok; |
519 | unsigned int i, retry; | 519 | unsigned int i, retry; |