Re: Some warning: ... cleanup; realy no interest?

"John David Anglin" <[email protected]> Fri, 3 Aug 2007 11:16:08 -0400 (EDT)
Newsgroups gmane.linux.ports.hppa
Message-ID <[email protected]>
> > > /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                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)