[PATCH] of_platform_make_bus_id(): kill compiler warning

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Fri Dec 8 02:48:02 EST 2006


On Thu, 7 Dec 2006, Kumar Gala wrote:
> On Dec 7, 2006, at 9:29 AM, Geert Uytterhoeven wrote:
> > of_platform_make_bus_id(): Kill a compiler warning which is a real  
> > bug on
> > PPC64: format ‘%d’ expects type ‘int’, but argument 5 has type  
> > ‘long int’
> >
> > Signed-Off-By: Geert Uytterhoeven <Geert.Uytterhoeven at sonycom.com>
> 
> I think its better to change magic to type int.  atomic_add_return is  
> going to return an int so magic this %ld on ppc32 has to value.

You're right. I'll send a new patch.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven at sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium


More information about the Linuxppc-dev mailing list