From d1e9551579f603cbee93575030e36ed8d02702a6 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 23 Oct 2012 13:50:16 +1100 Subject: [PATCH] init-use-the-stringify-operator-for-the-__define_initcall-macro-checkpatch-fixes Cc: Matthew Leach ERROR: space required after that ',' (ctx:VxV) #25: FILE: include/linux/init.h:189: +#define __define_initcall(fn,id) \ ^ ERROR: space required after that ',' (ctx:VxV) #36: FILE: include/linux/init.h:198: +#define early_initcall(fn) __define_initcall(fn,early) ^ ERROR: space required after that ',' (ctx:VxV) #45: FILE: include/linux/init.h:207: +#define pure_initcall(fn) __define_initcall(fn,0) ^ ERROR: space required after that ',' (ctx:VxV) #62: FILE: include/linux/init.h:209: +#define core_initcall(fn) __define_initcall(fn,1) ^ ERROR: space required after that ',' (ctx:VxV) #63: FILE: include/linux/init.h:210: +#define core_initcall_sync(fn) __define_initcall(fn,1s) ^ ERROR: space required after that ',' (ctx:VxV) #64: FILE: include/linux/init.h:211: +#define postcore_initcall(fn) __define_initcall(fn,2) ^ ERROR: space required after that ',' (ctx:VxV) #65: FILE: include/linux/init.h:212: +#define postcore_initcall_sync(fn) __define_initcall(fn,2s) ^ ERROR: space required after that ',' (ctx:VxV) #66: FILE: include/linux/init.h:213: +#define arch_initcall(fn) __define_initcall(fn,3) ^ ERROR: space required after that ',' (ctx:VxV) #67: FILE: include/linux/init.h:214: +#define arch_initcall_sync(fn) __define_initcall(fn,3s) ^ ERROR: space required after that ',' (ctx:VxV) #68: FILE: include/linux/init.h:215: +#define subsys_initcall(fn) __define_initcall(fn,4) ^ ERROR: space required after that ',' (ctx:VxV) #69: FILE: include/linux/init.h:216: +#define subsys_initcall_sync(fn) __define_initcall(fn,4s) ^ ERROR: space required after that ',' (ctx:VxV) #70: FILE: include/linux/init.h:217: +#define fs_initcall(fn) __define_initcall(fn,5) ^ ERROR: space required after that ',' (ctx:VxV) #71: FILE: include/linux/init.h:218: +#define fs_initcall_sync(fn) __define_initcall(fn,5s) ^ ERROR: space required after that ',' (ctx:VxV) #72: FILE: include/linux/init.h:219: +#define rootfs_initcall(fn) __define_initcall(fn,rootfs) ^ ERROR: space required after that ',' (ctx:VxV) #73: FILE: include/linux/init.h:220: +#define device_initcall(fn) __define_initcall(fn,6) ^ ERROR: space required after that ',' (ctx:VxV) #74: FILE: include/linux/init.h:221: +#define device_initcall_sync(fn) __define_initcall(fn,6s) ^ ERROR: space required after that ',' (ctx:VxV) #75: FILE: include/linux/init.h:222: +#define late_initcall(fn) __define_initcall(fn,7) ^ ERROR: space required after that ',' (ctx:VxV) #76: FILE: include/linux/init.h:223: +#define late_initcall_sync(fn) __define_initcall(fn,7s) ^ total: 18 errors, 0 warnings, 58 lines checked ./patches/init-use-the-stringify-operator-for-the-__define_initcall-macro.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Matthew Leach Signed-off-by: Andrew Morton --- include/linux/init.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/include/linux/init.h b/include/linux/init.h index eaa3851e414e..1c2746f35f15 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -186,7 +186,7 @@ extern bool initcall_debug; * can point at the same handler without causing duplicate-symbol build errors. */ -#define __define_initcall(fn,id) \ +#define __define_initcall(fn, id) \ static initcall_t __initcall_##fn##id __used \ __attribute__((__section__(".initcall" #id ".init"))) = fn @@ -195,7 +195,7 @@ extern bool initcall_debug; * * Only for built-in code, not modules. */ -#define early_initcall(fn) __define_initcall(fn,early) +#define early_initcall(fn) __define_initcall(fn, early) /* * A "pure" initcall has no dependencies on anything else, and purely @@ -204,23 +204,23 @@ extern bool initcall_debug; * This only exists for built-in code, not for modules. * Keep main.c:initcall_level_names[] in sync. */ -#define pure_initcall(fn) __define_initcall(fn,0) - -#define core_initcall(fn) __define_initcall(fn,1) -#define core_initcall_sync(fn) __define_initcall(fn,1s) -#define postcore_initcall(fn) __define_initcall(fn,2) -#define postcore_initcall_sync(fn) __define_initcall(fn,2s) -#define arch_initcall(fn) __define_initcall(fn,3) -#define arch_initcall_sync(fn) __define_initcall(fn,3s) -#define subsys_initcall(fn) __define_initcall(fn,4) -#define subsys_initcall_sync(fn) __define_initcall(fn,4s) -#define fs_initcall(fn) __define_initcall(fn,5) -#define fs_initcall_sync(fn) __define_initcall(fn,5s) -#define rootfs_initcall(fn) __define_initcall(fn,rootfs) -#define device_initcall(fn) __define_initcall(fn,6) -#define device_initcall_sync(fn) __define_initcall(fn,6s) -#define late_initcall(fn) __define_initcall(fn,7) -#define late_initcall_sync(fn) __define_initcall(fn,7s) +#define pure_initcall(fn) __define_initcall(fn, 0) + +#define core_initcall(fn) __define_initcall(fn, 1) +#define core_initcall_sync(fn) __define_initcall(fn, 1s) +#define postcore_initcall(fn) __define_initcall(fn, 2) +#define postcore_initcall_sync(fn) __define_initcall(fn, 2s) +#define arch_initcall(fn) __define_initcall(fn, 3) +#define arch_initcall_sync(fn) __define_initcall(fn, 3s) +#define subsys_initcall(fn) __define_initcall(fn, 4) +#define subsys_initcall_sync(fn) __define_initcall(fn, 4s) +#define fs_initcall(fn) __define_initcall(fn, 5) +#define fs_initcall_sync(fn) __define_initcall(fn, 5s) +#define rootfs_initcall(fn) __define_initcall(fn, rootfs) +#define device_initcall(fn) __define_initcall(fn, 6) +#define device_initcall_sync(fn) __define_initcall(fn, 6s) +#define late_initcall(fn) __define_initcall(fn, 7) +#define late_initcall_sync(fn) __define_initcall(fn, 7s) #define __initcall(fn) device_initcall(fn) -- 2.39.5