may as well depukify it a bit while we're there.
WARNING: plain inline is preferred over __inline__
#22: FILE: lib/crc32.c:47:
+static __inline__ u32
ERROR: space prohibited after that open square bracket '['
#26: FILE: lib/crc32.c:51:
+# define DO_CRC(x) crc = tab[ (crc ^ (x)) & 255 ] ^ (crc>>8)
ERROR: space prohibited before that close square bracket ']'
#26: FILE: lib/crc32.c:51:
+# define DO_CRC(x) crc = tab[ (crc ^ (x)) & 255 ] ^ (crc>>8)
ERROR: Macros with complex values should be enclosed in parenthesis
#26: FILE: lib/crc32.c:51:
+# define DO_CRC(x) crc = tab[ (crc ^ (x)) & 255 ] ^ (crc>>8)
ERROR: space prohibited after that open square bracket '['
#28: FILE: lib/crc32.c:53:
+# define DO_CRC(x) crc = tab[ ((crc >> 24) ^ (x)) & 255] ^ (crc<<8)
ERROR: Macros with complex values should be enclosed in parenthesis
#28: FILE: lib/crc32.c:53:
+# define DO_CRC(x) crc = tab[ ((crc >> 24) ^ (x)) & 255] ^ (crc<<8)
ERROR: spaces required around that '=' (ctx:WxV)
#30: FILE: lib/crc32.c:55:
+ const u32 *b =(u32 *)buf;
^
ERROR: space required before the open parenthesis '('
#34: FILE: lib/crc32.c:59:
+ if(unlikely(((long)b)&3 && len)) {
ERROR: space required before the open parenthesis '('
#53: FILE: lib/crc32.c:78:
+ if(len) {
total: 8 errors, 1 warnings, 145 lines checked
./patches/crc32-minor-optimizations-and-cleanup.patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Please run checkpatch prior to sending patches
Cc: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Showing
Please register or sign in to comment