Re: [PATCH] include/linux/platform_data: beautify code, 'inline'is better in front of 'void'

From: Chen Gang
Date: Mon Mar 25 2013 - 21:23:32 EST


On 2013å03æ26æ 07:32, Greg KH wrote:
> On Mon, Mar 25, 2013 at 10:36:22AM +0800, Chen Gang wrote:
>>
>> better to let 'inline' in front of 'void'
>
> Why? What does this fix?
>
>
>

when I am compiling with "EXTRA_FLAGS=-W", I get a warning:
make V=1 EXTRA_CFLAGS=-W ARCH=arm randconfig
make V=1 EXTRA_CFLAGS=-W ARCH=arm menuconfig
choose arm-linux-gnu- for cross chain prefix.
choose S5pv210 for processor type
make V=1 EXTRA_CFLAGS=-W ARCH=arm

the warning is:
include/linux/platform_data/usb-ohci-s3c2410.h:34:1: warning: âinlineâ is not at beginning of declaration [-Wold-style-declaration]


it is only for beautify code, not fix a bug.



:-)


--
Chen Gang

Asianux Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/