Skip to content

Commit 17dff2c

Browse files
akpm00sfrothwell
authored andcommitted
mm-gup-pack-has_pinned-in-mmf_has_pinned-checkpatch-fixes
WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line) #25: [[email protected]: fix build for task_mmu.c, introduce mm_set_has_pinned_flag, fix comments] WARNING: please, no spaces at the start of a line #130: FILE: mm/gup.c:1280: + if (!test_bit(MMF_HAS_PINNED, mm_flags))$ WARNING: suspect code indent for conditional statements (7, 15) #130: FILE: mm/gup.c:1280: + if (!test_bit(MMF_HAS_PINNED, mm_flags)) + set_bit(MMF_HAS_PINNED, mm_flags); ERROR: code indent should use tabs where possible #131: FILE: mm/gup.c:1281: + set_bit(MMF_HAS_PINNED, mm_flags);$ WARNING: please, no spaces at the start of a line #131: FILE: mm/gup.c:1281: + set_bit(MMF_HAS_PINNED, mm_flags);$ total: 1 errors, 4 warnings, 90 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. NOTE: Whitespace errors detected. You may wish to use scripts/cleanpatch or scripts/cleanfile ./patches/mm-gup-pack-has_pinned-in-mmf_has_pinned.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Peter Xu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Stephen Rothwell <[email protected]>
1 parent d6c1ea1 commit 17dff2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/gup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,8 +1277,8 @@ EXPORT_SYMBOL_GPL(fixup_user_fault);
12771277
*/
12781278
static inline void mm_set_has_pinned_flag(unsigned long *mm_flags)
12791279
{
1280-
if (!test_bit(MMF_HAS_PINNED, mm_flags))
1281-
set_bit(MMF_HAS_PINNED, mm_flags);
1280+
if (!test_bit(MMF_HAS_PINNED, mm_flags))
1281+
set_bit(MMF_HAS_PINNED, mm_flags);
12821282
}
12831283

12841284
/*

0 commit comments

Comments
 (0)