Skip to content

Commit

Permalink
mm-page_alloc-reduce-page-alloc-free-sanity-checks-checkpatch-fixes
Browse files Browse the repository at this point in the history
WARNING: braces {} are not necessary for single statement blocks
linux-sunxi#152: FILE: mm/page_alloc.c:956:
+	if (!IS_ENABLED(CONFIG_DEBUG_VM) && want_check_pages) {
+		static_branch_enable(&check_pages_enabled);
+	}

total: 3 errors, 2 warnings, 307 lines checked

Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 committed Mar 4, 2023
1 parent 528fbc9 commit 2b4c8ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,8 @@ void __init init_mem_debugging_and_hardening(void)
* of struct pages being allocated or freed. With CONFIG_DEBUG_VM it's
* enabled already.
*/
if (!IS_ENABLED(CONFIG_DEBUG_VM) && want_check_pages) {
if (!IS_ENABLED(CONFIG_DEBUG_VM) && want_check_pages)
static_branch_enable(&check_pages_enabled);
}
}

static inline void set_buddy_order(struct page *page, unsigned int order)
Expand Down

0 comments on commit 2b4c8ce

Please sign in to comment.