drivers / base: Fix sysfs_deprecated_setup() __init attribute location
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Greg,
I sent [PATCH 3/3] twice because of my bad email client, sorry for the noise, please ignore the duplicated [PATCH 3/3].
Thanks
Hanjun
Quoted 21 lines · Hanjun Guo
__initbelongs after the return type on functions, not before it.Signed-off-by Hanjun Guo <[email protected]>--- drivers/base/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/base/core.c +1
-1@@ -36,7 +36,7 @@ long sysfs_deprecated = 1;#else long sysfs_deprecated =0 ;#endif -static __init int sysfs_deprecated_setup (char *arg) +static int __init sysfs_deprecated_setup (char *arg) {return strict_strtol (arg,10 , &sysfs_deprecated); }