Skip to content

Commit 4f69e9b

Browse files
akpm00sfrothwell
authored andcommitted
kernel-add-support-for-gcc-5-checkpatch-fixes
WARNING: line over 80 characters torvalds#25: FILE: include/linux/compiler-gcc5.h:2: +#error "Please don't include <linux/compiler-gcc5.h> directly, include <linux/compiler.h> instead." WARNING: please, no space before tabs torvalds#29: FILE: include/linux/compiler-gcc5.h:6: +#define __must_check ^I^I__attribute__((warn_unused_result))$ ERROR: space required after that ',' (ctx:VxV) torvalds#30: FILE: include/linux/compiler-gcc5.h:7: +#define __compiler_offsetof(a,b) __builtin_offsetof(a,b) ^ ERROR: space required after that ',' (ctx:VxV) torvalds#30: FILE: include/linux/compiler-gcc5.h:7: +#define __compiler_offsetof(a,b) __builtin_offsetof(a,b) ^ total: 2 errors, 2 warnings, 66 lines checked ./patches/kernel-add-support-for-gcc-5.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: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent be7b330 commit 4f69e9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/linux/compiler-gcc5.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#error "Please don't include <linux/compiler-gcc5.h> directly, include <linux/compiler.h> instead."
33
#endif
44

5-
#define __used __attribute__((__used__))
6-
#define __must_check __attribute__((warn_unused_result))
7-
#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
5+
#define __used __attribute__((__used__))
6+
#define __must_check __attribute__((warn_unused_result))
7+
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
88

99
/* Mark functions as cold. gcc will assume any path leading to a call
1010
to them will be unlikely. This means a lot of manual unlikely()s

0 commit comments

Comments
 (0)