Re: [patch] gma500: silence an unused variable warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Thu, 10 May 2012 10:33:02 +0300
Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:

> If CONFIG_BACKLIGHT_CLASS_DEVICE is disabled then GCC warns that:
> 	drivers/gpu/drm/gma500/opregion.c:154:6: warning:
> 		unused variable ‘max’ [-Wunused-variable]
> 
> Which give me a chance to use the new config_enabled() macro.  :)
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Acked-by: Alan Cox <alan@xxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]     [Free Dating]

Add to Google Powered by Linux