linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] serial: sh-sci: Fix cast warning
@ 2014-02-04  6:55 Jingoo Han
  2014-02-04  6:58 ` [PATCH 2/2] serial: pch_uart: Fix build warning when CONFIG_DEBUG_FS=n Jingoo Han
  2014-02-04 22:09 ` [PATCH 1/2] serial: sh-sci: Fix cast warning Laurent Pinchart
  0 siblings, 2 replies; 5+ messages in thread
From: Jingoo Han @ 2014-02-04  6:55 UTC (permalink / raw)
  To: 'Greg Kroah-Hartman'
  Cc: linux-serial, 'Laurent Pinchart', 'Simon Horman',
	'Jingoo Han'

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 <jg1.han@samsung.com>
---
 drivers/tty/serial/sh-sci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index be33d2b..61729d4 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 *)(unsigned long)port->mapbase;
 	}
 
 	return 0;
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-05 18:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04  6:55 [PATCH 1/2] serial: sh-sci: Fix cast warning Jingoo Han
2014-02-04  6:58 ` [PATCH 2/2] serial: pch_uart: Fix build warning when CONFIG_DEBUG_FS=n Jingoo Han
2014-02-05 18:12   ` Darren Hart
2014-02-04 22:09 ` [PATCH 1/2] serial: sh-sci: Fix cast warning Laurent Pinchart
2014-02-05  0:42   ` Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).