Skip to content

Commit d17e8aa

Browse files
akpm00sfrothwell
authored andcommitted
mm-introduce-vm_bug_on_mm-checkpatch-fixes
ERROR: code indent should use tabs where possible torvalds#37: FILE: include/linux/mmdebug.h:33: + do {^I^I^I^I^I^I^I^I\$ WARNING: please, no spaces at the start of a line torvalds#37: FILE: include/linux/mmdebug.h:33: + do {^I^I^I^I^I^I^I^I\$ ERROR: code indent should use tabs where possible torvalds#38: FILE: include/linux/mmdebug.h:34: + if (unlikely(cond)) {^I^I^I^I^I\$ WARNING: please, no spaces at the start of a line torvalds#38: FILE: include/linux/mmdebug.h:34: + if (unlikely(cond)) {^I^I^I^I^I\$ ERROR: code indent should use tabs where possible torvalds#39: FILE: include/linux/mmdebug.h:35: + dump_mm(mm);^I^I^I^I^I\$ WARNING: please, no spaces at the start of a line torvalds#39: FILE: include/linux/mmdebug.h:35: + dump_mm(mm);^I^I^I^I^I\$ ERROR: code indent should use tabs where possible torvalds#40: FILE: include/linux/mmdebug.h:36: + BUG();^I^I^I^I^I^I\$ WARNING: please, no spaces at the start of a line torvalds#40: FILE: include/linux/mmdebug.h:36: + BUG();^I^I^I^I^I^I\$ ERROR: code indent should use tabs where possible torvalds#41: FILE: include/linux/mmdebug.h:37: + }^I^I^I^I^I^I^I\$ WARNING: please, no spaces at the start of a line torvalds#41: FILE: include/linux/mmdebug.h:37: + }^I^I^I^I^I^I^I\$ ERROR: code indent should use tabs where possible torvalds#42: FILE: include/linux/mmdebug.h:38: + } while (0)$ WARNING: please, no spaces at the start of a line torvalds#42: FILE: include/linux/mmdebug.h:38: + } while (0)$ WARNING: Prefer [subsystem eg: netdev]_alert([subsystem]dev, ... then dev_alert(dev, ... then pr_alert(... to printk(KERN_ALERT ... torvalds#74: FILE: mm/debug.c:171: + printk(KERN_ALERT total: 6 errors, 7 warnings, 109 lines checked NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or scripts/cleanfile ./patches/mm-introduce-vm_bug_on_mm.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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 7e158f6 commit d17e8aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: include/linux/mmdebug.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ void dump_mm(const struct mm_struct *mm);
3030
} \
3131
} while (0)
3232
#define VM_BUG_ON_MM(cond, mm) \
33-
do { \
34-
if (unlikely(cond)) { \
35-
dump_mm(mm); \
36-
BUG(); \
37-
} \
38-
} while (0)
33+
do { \
34+
if (unlikely(cond)) { \
35+
dump_mm(mm); \
36+
BUG(); \
37+
} \
38+
} while (0)
3939
#define VM_WARN_ON(cond) WARN_ON(cond)
4040
#define VM_WARN_ON_ONCE(cond) WARN_ON_ONCE(cond)
4141
#define VM_WARN_ONCE(cond, format...) WARN_ONCE(cond, format)

0 commit comments

Comments
 (0)