From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Date: Tue, 03 Dec 2013 18:45:57 +0000 Subject: Re: [PATCH] serial: sh-sci: Fix warnings due to improper casts and printk formats Message-Id: <20131203184557.GF23280@kroah.com> List-Id: References: <1385512118-10219-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> In-Reply-To: <1385512118-10219-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Laurent Pinchart Cc: linux-sh@vger.kernel.org, linux-serial@vger.kernel.org On Wed, Nov 27, 2013 at 01:28:38AM +0100, Laurent Pinchart wrote: > Use the %zu printk specifier to print size_t variables, and cast > pointers to unsigned long instead of unsigned int where applicable. This > fixes warnings on platforms where pointers and/or dma_addr_t have a > different size than int. > > Cc: Greg Kroah-Hartman > Cc: linux-serial@vger.kernel.org > Signed-off-by: Laurent Pinchart > --- > drivers/tty/serial/sh-sci.c | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 deletions(-) Acked-by: Greg Kroah-Hartman From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [PATCH] serial: sh-sci: Fix warnings due to improper casts and printk formats Date: Tue, 3 Dec 2013 10:45:57 -0800 Message-ID: <20131203184557.GF23280@kroah.com> References: <1385512118-10219-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1385512118-10219-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> Sender: linux-sh-owner@vger.kernel.org To: Laurent Pinchart Cc: linux-sh@vger.kernel.org, linux-serial@vger.kernel.org List-Id: linux-serial@vger.kernel.org On Wed, Nov 27, 2013 at 01:28:38AM +0100, Laurent Pinchart wrote: > Use the %zu printk specifier to print size_t variables, and cast > pointers to unsigned long instead of unsigned int where applicable. This > fixes warnings on platforms where pointers and/or dma_addr_t have a > different size than int. > > Cc: Greg Kroah-Hartman > Cc: linux-serial@vger.kernel.org > Signed-off-by: Laurent Pinchart > --- > drivers/tty/serial/sh-sci.c | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 deletions(-) Acked-by: Greg Kroah-Hartman