From: Jingoo Han Date: Wed, 5 Feb 2014 00:56:37 +0000 (+0900) Subject: serial: sh-sci: Fix cast warning X-Git-Tag: upstream/snapshot3+hdmi~916 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b08a488d0aabd93798596836f0737081f84d93f2;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git serial: sh-sci: Fix cast warning Fix the following compile warning about cast to pointer from integer of different size. drivers/tty/serial/sh-sci.c:2021:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Signed-off-by: Jingoo Han Acked-by: Laurent Pinchart Signed-off-by: Greg Kroah-Hartman (cherry picked from commit 3af4e960b8a12b3f07033f1c12504305e6d4df1a) Signed-off-by: Simon Horman --- diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index be33d2b..1668523 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -2018,7 +2018,7 @@ static int sci_remap_port(struct uart_port *port) * need to do any remapping, just cast the cookie * directly. */ - port->membase = (void __iomem *)port->mapbase; + port->membase = (void __iomem *)(uintptr_t)port->mapbase; } return 0;