mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[PATCH] ARM: 2692/1: Fix compile warnings in include/asm-arm/arch-ixp2000/io.h
Patch from Deepak Saxena This patch fixes the following warnings: include/asm/arch/io.h: In function `insw': include/asm/arch/io.h:78: warning: comparison of distinct pointer types lacks acast include/asm/arch/io.h:79: warning: comparison of distinct pointer types lacks acast include/asm/arch/io.h: In function `outsw': include/asm/arch/io.h:103: warning: comparison of distinct pointer types lacks a cast include/asm/arch/io.h:104: warning: comparison of distinct pointer types lacks a cast include/asm/arch/io.h: In function `inw': include/asm/arch/io.h:127: warning: comparison of distinct pointer types lacks a cast Signed-off-by: Deepak Saxena Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
eff910a91a
commit
4ab5c01c7c
1 changed files with 8 additions and 8 deletions
|
@ -75,8 +75,8 @@ static inline void insw(u32 ptr, void *buf, int length)
|
|||
* Is this cycle meant for the CS8900?
|
||||
*/
|
||||
if ((machine_is_ixdp2401() || machine_is_ixdp2801()) &&
|
||||
((port >= IXDP2X01_CS8900_VIRT_BASE) &&
|
||||
(port <= IXDP2X01_CS8900_VIRT_END))) {
|
||||
(((u32)port >= (u32)IXDP2X01_CS8900_VIRT_BASE) &&
|
||||
((u32)port <= (u32)IXDP2X01_CS8900_VIRT_END))) {
|
||||
u8 *buf8 = (u8*)buf;
|
||||
register u32 tmp32;
|
||||
|
||||
|
@ -100,8 +100,8 @@ static inline void outsw(u32 ptr, void *buf, int length)
|
|||
* Is this cycle meant for the CS8900?
|
||||
*/
|
||||
if ((machine_is_ixdp2401() || machine_is_ixdp2801()) &&
|
||||
((port >= IXDP2X01_CS8900_VIRT_BASE) &&
|
||||
(port <= IXDP2X01_CS8900_VIRT_END))) {
|
||||
(((u32)port >= (u32)IXDP2X01_CS8900_VIRT_BASE) &&
|
||||
((u32)port <= (u32)IXDP2X01_CS8900_VIRT_END))) {
|
||||
register u32 tmp32;
|
||||
u8 *buf8 = (u8*)buf;
|
||||
do {
|
||||
|
@ -124,8 +124,8 @@ static inline u16 inw(u32 ptr)
|
|||
* Is this cycle meant for the CS8900?
|
||||
*/
|
||||
if ((machine_is_ixdp2401() || machine_is_ixdp2801()) &&
|
||||
((port >= IXDP2X01_CS8900_VIRT_BASE) &&
|
||||
(port <= IXDP2X01_CS8900_VIRT_END))) {
|
||||
(((u32)port >= (u32)IXDP2X01_CS8900_VIRT_BASE) &&
|
||||
((u32)port <= (u32)IXDP2X01_CS8900_VIRT_END))) {
|
||||
return (u16)(*port);
|
||||
}
|
||||
|
||||
|
@ -137,8 +137,8 @@ static inline void outw(u16 value, u32 ptr)
|
|||
register volatile u32 *port = (volatile u32 *)ptr;
|
||||
|
||||
if ((machine_is_ixdp2401() || machine_is_ixdp2801()) &&
|
||||
((port >= IXDP2X01_CS8900_VIRT_BASE) &&
|
||||
(port <= IXDP2X01_CS8900_VIRT_END))) {
|
||||
(((u32)port >= (u32)IXDP2X01_CS8900_VIRT_BASE) &&
|
||||
((u32)port <= (u32)IXDP2X01_CS8900_VIRT_END))) {
|
||||
*port = value;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue