[parisc-linux] Some warning: ... cleanup; realy no interest?
John David Anglin
dave at hiauly1.hia.nrc.ca
Fri Aug 3 09:16:08 MDT 2007
> > > /CAD/linux-2.6.22-pa/drivers/parisc/dino.c: In function ?dino_bridge_init?:
> > > /CAD/linux-2.6.22-pa/drivers/parisc/dino.c:821: warning: format %lx
> expects type long unsigned int, but argument 4 has type
> > > resource_size_t
> > > /CAD/linux-2.6.22-pa/drivers/parisc/dino.c:821: warning: format %lx
> expects type long unsigned int, but argument 5 has type
> > > resource_size_t
>From linux/types.h:
#ifdef CONFIG_RESOURCES_64BIT
typedef u64 resource_size_t;
#else
typedef u32 resource_size_t;
#endif
%lx looks right for parisc. This is ugly but you can kill the warning
by casting arguments 4 and 5 to unsigned long.
Dave
--
J. David Anglin dave.anglin at nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
More information about the parisc-linux
mailing list