2010-12-20 04:25:14

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build warnings after merge of the mfd tree

Hi Samuel,

After merging the mfd tree, today's linux-next build (x86_64 allmodconfig)
produced these warnings:

drivers/gpio/cs5535-gpio.c: In function 'cs5535_gpio_probe':
drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'
drivers/misc/cs5535-mfgpt.c: In function 'cs5535_mfgpt_probe':
drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'

Introduced by commits d8fefd6ff3a8444ab34f6eb6c7c1961f0ca0008a ("gpio:
Convert cs5535 from pci device to platform device") and
6a85d28cfca9663c0db297a04ca43777dc5bcaa6 ("misc: Convert cs5535-mfgpt
from pci device to platform device"). We have %pR for printing
resources ...
--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/


Attachments:
(No filename) (1.09 kB)
(No filename) (490.00 B)
Download all attachments

2010-12-20 04:29:10

by Randy Dunlap

[permalink] [raw]
Subject: Re: linux-next: build warnings after merge of the mfd tree

On Mon, 20 Dec 2010 15:25:05 +1100 Stephen Rothwell wrote:

> Hi Samuel,
>
> After merging the mfd tree, today's linux-next build (x86_64 allmodconfig)
> produced these warnings:
>
> drivers/gpio/cs5535-gpio.c: In function 'cs5535_gpio_probe':
> drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
> drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'
> drivers/misc/cs5535-mfgpt.c: In function 'cs5535_mfgpt_probe':
> drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
> drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'
>
> Introduced by commits d8fefd6ff3a8444ab34f6eb6c7c1961f0ca0008a ("gpio:
> Convert cs5535 from pci device to platform device") and
> 6a85d28cfca9663c0db297a04ca43777dc5bcaa6 ("misc: Convert cs5535-mfgpt
> from pci device to platform device"). We have %pR for printing
> resources ...

Yes, and Joe Perches has posted a patch for that.
It just needs to be merged....

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
desserts: http://www.xenotime.net/linux/recipes/

2010-12-20 10:31:47

by Samuel Ortiz

[permalink] [raw]
Subject: Re: linux-next: build warnings after merge of the mfd tree

On Sun, Dec 19, 2010 at 08:27:45PM -0800, Randy Dunlap wrote:
> On Mon, 20 Dec 2010 15:25:05 +1100 Stephen Rothwell wrote:
>
> > Hi Samuel,
> >
> > After merging the mfd tree, today's linux-next build (x86_64 allmodconfig)
> > produced these warnings:
> >
> > drivers/gpio/cs5535-gpio.c: In function 'cs5535_gpio_probe':
> > drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
> > drivers/gpio/cs5535-gpio.c:269: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'
> > drivers/misc/cs5535-mfgpt.c: In function 'cs5535_mfgpt_probe':
> > drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'resource_size_t'
> > drivers/misc/cs5535-mfgpt.c:320: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'
> >
> > Introduced by commits d8fefd6ff3a8444ab34f6eb6c7c1961f0ca0008a ("gpio:
> > Convert cs5535 from pci device to platform device") and
> > 6a85d28cfca9663c0db297a04ca43777dc5bcaa6 ("misc: Convert cs5535-mfgpt
> > from pci device to platform device"). We have %pR for printing
> > resources ...
>
> Yes, and Joe Perches has posted a patch for that.
I never received that one. I found it on patchwork, and applied it now.
Stephen, this is fixed.

Cheers,
Samuel.

--
Intel Open Source Technology Centre
http://oss.intel.com/