From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Jingoo Han <jg1.han@samsung.com>
Cc: 'Greg Kroah-Hartman' <gregkh@linuxfoundation.org>,
linux-serial@vger.kernel.org,
'Laurent Pinchart' <laurent.pinchart+renesas@ideasonboard.com>,
'Simon Horman' <horms+renesas@verge.net.au>
Subject: Re: [PATCH 1/2] serial: sh-sci: Fix cast warning
Date: Tue, 04 Feb 2014 23:09:14 +0100 [thread overview]
Message-ID: <1770030.4nuhDBK3mM@avalon> (raw)
In-Reply-To: <000501cf2176$1e733d00$5b59b700$%han@samsung.com>
Hi Jingoo,
Thank you for the patch.
On Tuesday 04 February 2014 15:55:41 Jingoo Han wrote:
> 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;
What about casting to uintptr_t instead of unsigned long ?
> }
>
> return 0;
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-02-04 22:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Laurent Pinchart [this message]
2014-02-05 0:42 ` [PATCH 1/2] serial: sh-sci: Fix cast warning Jingoo Han
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1770030.4nuhDBK3mM@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=gregkh@linuxfoundation.org \
--cc=horms+renesas@verge.net.au \
--cc=jg1.han@samsung.com \
--cc=laurent.pinchart+renesas@ideasonboard.com \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.