[PATCH 1/4] Made VMALLOC_END of type unsigned long.

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Oct 1 14:32:48 EDT 2009


Hello,

On Thu, Oct 01, 2009 at 02:03:38PM +0100, Russell King - ARM Linux wrote:
> On Thu, Oct 01, 2009 at 12:47:15PM +0200, Andreas Fenkart wrote:
> > Davinci defines VMALLOC_END this way:
> > 
> > #define VMALLOC_END   (IO_VIRT - (2<<20))   
> > 
> > The simple solution would be to prefix the VMALLOC_END with UL,
> > the alternative to make IO_VIRT unsinged long.
> 
> Is:
> 
> 	(IO_VIRT - (2<<20))UL
> 
> valid C?  I don't think it is, and neither does my compiler.
No, but

	 UL(IO_VIRT - (2<<20))

might work?!  Havn't tried though.

Best regards
Uwe

-- 
Pengutronix e.K.                              | Uwe Kleine-König            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |



More information about the linux-arm-kernel mailing list