[PATCH] ARM: imx/eukrea_mbimx27: fix compile warnings about unused variables
Sergei Shtylyov
sshtylyov at mvista.com
Wed Feb 9 15:13:26 EST 2011
Hello.
Uwe Kleine-König wrote:
>>> Signed-off-by: Uwe Kleine-König<u.kleine-koenig at pengutronix.de>
>> [...]
>>> diff --git a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
>>> index 275c858..9ac5348 100644
>>> --- a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
>>> +++ b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c
>> [...]
>>> @@ -268,7 +268,8 @@ static struct ads7846_platform_data ads7846_config __initdata = {
>>> .keep_vref_on = 1,
>>> };
>>>
>>> -static struct spi_board_info eukrea_mbimx27_spi_board_info[] __initdata = {
>>> +static struct spi_board_info __maybe_unused
>>> +eukrea_mbimx27_spi_board_info[] __initdata = {
>> I think the second line should be somewhat indented.
> I like it as it is. There are no rules for that, no?
Documentation/CodingStyle, chapter 2.
> Uwe
WBR, Sergei
More information about the linux-arm-kernel
mailing list