diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-08 04:29:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 14:35:31 -0400 |
commit | 9fdedf5d16d04238833d1d45a8e303fdb86bee3a (patch) | |
tree | 05214db88d9f18072598a1a4f55d93ea4f13596b /drivers/tty | |
parent | ada1f443d11464468a06646939bb1aed60f5f2dd (diff) |
serial: samsung: fix casting warning
port->membase is (unsigned char __iomem *), not (unsigned long *)
__set_bit() uses (unsigned long *) as the second argument.
Thus, casting (unsigned long *)(unsigned long) is necessary
to fix the following sparse warnings.
drivers/tty/serial/samsung.c:142:33: warning: cast removes address space of expression
drivers/tty/serial/samsung.c:161:33: warning: cast removes address space of expression
drivers/tty/serial/samsung.c:176:33: warning: cast removes address space of expression
drivers/tty/serial/samsung.c:526:40: warning: cast removes address space of expression
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/samsung.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/samsung.h b/drivers/tty/serial/samsung.h index 00a499ecd385..aaa617a6c499 100644 --- a/drivers/tty/serial/samsung.h +++ b/drivers/tty/serial/samsung.h | |||
@@ -68,7 +68,8 @@ struct s3c24xx_uart_port { | |||
68 | /* register access controls */ | 68 | /* register access controls */ |
69 | 69 | ||
70 | #define portaddr(port, reg) ((port)->membase + (reg)) | 70 | #define portaddr(port, reg) ((port)->membase + (reg)) |
71 | #define portaddrl(port, reg) ((unsigned long *)((port)->membase + (reg))) | 71 | #define portaddrl(port, reg) \ |
72 | ((unsigned long *)(unsigned long)((port)->membase + (reg))) | ||
72 | 73 | ||
73 | #define rd_regb(port, reg) (__raw_readb(portaddr(port, reg))) | 74 | #define rd_regb(port, reg) (__raw_readb(portaddr(port, reg))) |
74 | #define rd_regl(port, reg) (__raw_readl(portaddr(port, reg))) | 75 | #define rd_regl(port, reg) (__raw_readl(portaddr(port, reg))) |