Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756181Ab3EaVO4 (ORCPT ); Fri, 31 May 2013 17:14:56 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:39229 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755058Ab3EaVOv (ORCPT ); Fri, 31 May 2013 17:14:51 -0400 Date: Sat, 1 Jun 2013 00:13:58 +0300 From: Felipe Balbi To: Emil Goode CC: , , , , Subject: Re: [PATCH v2] usb: musb: Fix format specifier warning Message-ID: <20130531211358.GC11520@arwen.pp.htv.fi> Reply-To: References: <1370033389-27131-1-git-send-email-emilgoode@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i7F3eY7HS/tUJxUd" Content-Disposition: inline In-Reply-To: <1370033389-27131-1-git-send-email-emilgoode@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2129 Lines: 58 --i7F3eY7HS/tUJxUd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, May 31, 2013 at 10:49:49PM +0200, Emil Goode wrote: > This patch fixes a format specifier warning. dma_addr_t can be either > u32 or u64 so we should cast to the largest type and change the format > specifier to %llx. > The addition of urb->transfer_dma and urb->actual_length is also done a > few lines below. I have moved this code up and pass the variable buf to > dev_dbg. >=20 > Sparse output: > drivers/usb/musb/musb_host.c:1761:4: warning: > format =E2=80=98%x=E2=80=99 expects argument of type =E2=80=98unsigned i= nt=E2=80=99, > but argument 6 has type =E2=80=98dma_addr_t=E2=80=99 [-Wformat] >=20 > Signed-off-by: Emil Goode already sent this one yesterday: http://marc.info/?l=3Dlinux-usb&m=3D136987256218081 --=20 balbi --i7F3eY7HS/tUJxUd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJRqRKWAAoJEIaOsuA1yqRErn4QAKw9IO81oFtXWLd3YlbkobIf YUs87SlrDnk+yvpv7gvNkoQi5Bk5OryA15dYvmy1ZXtmRIlJ8I+BYfqoL6Ojj5KL uIRJlKgIuVbPB5CcCxPWFGHUudi57QtrgFpg6leDwDe/606KlBsvLor+UlYaQlVn NUnPvzkUmRbSZJhkQEJTzg5TZaE/c94Lip+eFLM8ozEkYcWS+QaNUSBi80V+fQF+ 9oLChG/oexDQr7RSJC87rB9TwAXxsjQmouDcCdC6xLOntHLC7HycYkFUjC1MOwoW djL79T13vZ4alb16Q6DR8gqzdQh7e6KZhvptEoCOs6aSj9B5qk72d20JKHvN2nLF ZpAWmhLGLxTLXerTqxIGFCnWDACHgs/Zu3bpnlE42JKbC3s8Kunp0TvCNo8m+VjM 5MVVi/8N9a/PKjRr89jRveiWC1SDwW6zwN4f5qwpqwrnSy3Ew42H7EYRnCvUPRPA LRVDVvzEqufK+JlC2gggc1sTBhbDAzCfa9GaYCY9lneLhQ4rqXAAKfQqDxGP1fLd bqFJ8DL9Aq3O5yh4ERS8i8dpvQflNHFtigHdAX3Nc4y5zI0WQVkAi+HVVQQQtsSC Ki3LFgq2sdNXHGVz+jiH0GR5H2DkoIQ1KzUGWjF9LWuNoCKQGm/3FC50PUzmEFVS kOmAbDD4tsJmFgP28kR3 =/ltM -----END PGP SIGNATURE----- --i7F3eY7HS/tUJxUd-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/