diff options
author | Al Viro <viro@parcelfarce.linux.theplanet.co.uk> | 2005-04-24 15:28:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-24 15:28:36 -0400 |
commit | ef0299bf8e868c09bff13e6f3c4fc9b835f60471 (patch) | |
tree | 0b734b9d95cf5fe38a9a15a48e4900d28447502e /include/asm-sparc64/mostek.h | |
parent | fdca124a1bcc7e624f6b887c6f26153f40ee43ee (diff) |
[PATCH] mostek bogus sparse annotations fixed
void * __iomem foo is not a pointer to iomem - it's an iomem variable
containing void *. A pile of such guys in arch/sparc64/kernel/time.c,
drivers/sbus/char/rtc.c and include/asm-sparc64/mostek.h turned into
intended void __iomem *.
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-sparc64/mostek.h')
-rw-r--r-- | include/asm-sparc64/mostek.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-sparc64/mostek.h b/include/asm-sparc64/mostek.h index 1f9b1356a48e..09b5aba6678a 100644 --- a/include/asm-sparc64/mostek.h +++ b/include/asm-sparc64/mostek.h | |||
@@ -38,7 +38,7 @@ | |||
38 | * | 38 | * |
39 | * We now deal with physical addresses for I/O to the chip. -DaveM | 39 | * We now deal with physical addresses for I/O to the chip. -DaveM |
40 | */ | 40 | */ |
41 | static __inline__ u8 mostek_read(void * __iomem addr) | 41 | static __inline__ u8 mostek_read(void __iomem *addr) |
42 | { | 42 | { |
43 | u8 ret; | 43 | u8 ret; |
44 | 44 | ||
@@ -48,7 +48,7 @@ static __inline__ u8 mostek_read(void * __iomem addr) | |||
48 | return ret; | 48 | return ret; |
49 | } | 49 | } |
50 | 50 | ||
51 | static __inline__ void mostek_write(void * __iomem addr, u8 val) | 51 | static __inline__ void mostek_write(void __iomem *addr, u8 val) |
52 | { | 52 | { |
53 | __asm__ __volatile__("stba %0, [%1] %2" | 53 | __asm__ __volatile__("stba %0, [%1] %2" |
54 | : /* no outputs */ | 54 | : /* no outputs */ |
@@ -67,7 +67,7 @@ static __inline__ void mostek_write(void * __iomem addr, u8 val) | |||
67 | #define MOSTEK_YEAR 0x07ffUL | 67 | #define MOSTEK_YEAR 0x07ffUL |
68 | 68 | ||
69 | extern spinlock_t mostek_lock; | 69 | extern spinlock_t mostek_lock; |
70 | extern void *__iomem mstk48t02_regs; | 70 | extern void __iomem *mstk48t02_regs; |
71 | 71 | ||
72 | /* Control register values. */ | 72 | /* Control register values. */ |
73 | #define MSTK_CREG_WRITE 0x80 /* Must set this before placing values. */ | 73 | #define MSTK_CREG_WRITE 0x80 /* Must set this before placing values. */ |