From: Felipe Balbi <balbi@ti.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [patch 3/4] USB: musb: silence printk format warning
Date: Tue, 22 Mar 2011 09:21:43 +0000 [thread overview]
Message-ID: <20110322092141.GU1837@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <20110320111617.GK2008@bicker>
On Sun, Mar 20, 2011 at 02:16:17PM +0300, Dan Carpenter wrote:
> Gcc gives the following warnings:
>
> drivers/usb/musb/cppi_dma.c: In function ‘cppi_next_tx_segment’:
> drivers/usb/musb/cppi_dma.c:600: warning: format ‘%x’ expects type ‘unsigned int’, but argument 8 has type ‘dma_addr_t’
> drivers/usb/musb/cppi_dma.c: In function ‘cppi_next_rx_segment’:
> drivers/usb/musb/cppi_dma.c:822: warning: format ‘%x’ expects type ‘unsigned int’, but argument 9 has type ‘dma_addr_t’
> drivers/usb/musb/cppi_dma.c: In function ‘cppi_rx_scan’:
> drivers/usb/musb/cppi_dma.c:1042: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 4 has type ‘dma_addr_t’
> drivers/usb/musb/cppi_dma.c:1114: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 7 has type ‘dma_addr_t’
>
> dma_addr_t is sometimes 32 bit and sometimes 64. We normally cast them
> to unsigned long long for printk().
>
> Signed-off-by: Dan Carpenter <error27@gmail.com>
applied, thanks
--
balbi
prev parent reply other threads:[~2011-03-22 9:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-20 11:16 [patch 3/4] USB: musb: silence printk format warning Dan Carpenter
2011-03-22 9:21 ` Felipe Balbi [this message]
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=20110322092141.GU1837@legolas.emea.dhcp.ti.com \
--to=balbi@ti.com \
--cc=kernel-janitors@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox