Skip to contentSkip to conversation

char: moxa.c trivial sparse annotation

PATCH New Harvey Harrison 1 participant 1 message Aug 26, 2008 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char: moxa.c trivial 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

---
 drivers/char/moxa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/moxa.c +1 -1
index 5df4003..12d327a 100644
@@ -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;
Signature · 1 line
1.6.0.340.g84854