From: Harvey Harrison Date: Thu, 16 Oct 2008 05:04:19 +0000 (-0700) Subject: char: moxa.c sparse annotation X-Git-Tag: v2.6.28-rc1~350 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b46f69cd24b9020433f8f153e7d9194b5bfdf5e2;p=linux-2.6-omap-h63xx.git 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 Cc: Jiri Slaby Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c index 5df4003ad87..12d327a2c9b 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, 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;