From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Jingoo Han <jg1.han@samsung.com>,
'Simon Horman' <horms+renesas@verge.net.au>
Cc: 'Greg Kroah-Hartman' <gregkh@linuxfoundation.org>,
linux-serial@vger.kernel.org
Subject: Re: [PATCH V2 1/2] serial: sh-sci: Fix cast warning
Date: Mon, 10 Feb 2014 14:15:23 +0100 [thread overview]
Message-ID: <2819790.IHlWH9aZoh@avalon> (raw)
In-Reply-To: <000001cf220d$1fd2ed70$5f78c850$%han@samsung.com>
Hi Jingoo,
Thank you for the patch.
On Wednesday 05 February 2014 09:56:37 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>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Simon, Greg, how do you plan to handle sh-sci patches for v3.15 ?
> ---
> Changes since V1:
> - Use uintptr_t instead of unsigned long per Laurent Pinchart
>
> 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..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;
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-02-10 13:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-05 0:56 [PATCH V2 1/2] serial: sh-sci: Fix cast warning Jingoo Han
2014-02-05 0:58 ` [PATCH V2 2/2] serial: pch_uart: Fix build warning when CONFIG_DEBUG_FS=n Jingoo Han
2014-02-10 13:15 ` Laurent Pinchart [this message]
2014-02-13 17:15 ` [PATCH V2 1/2] serial: sh-sci: Fix cast warning 'Greg Kroah-Hartman'
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=2819790.IHlWH9aZoh@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=gregkh@linuxfoundation.org \
--cc=horms+renesas@verge.net.au \
--cc=jg1.han@samsung.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.