mm-mm_initc-clean-code-use-build_bug_on-when-comparing-compile-time-constant.patch removed from -mm tree
The patch titled
Subject: mm/mm_init.c: clean code. Use BUILD_BUG_ON when comparing compile time constant
has been removed from the -mm tree. Its filename was
mm-mm_initc-clean-code-use-build_bug_on-when-comparing-compile-time-constant.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Mateusz Nosek <[email protected]>
Subject: mm/mm_init.c: clean code. Use BUILD_BUG_ON when comparing compile time constant
MAX_ZONELISTS is a compile time constant, so it should be compared using BUILD_BUG_ON not BUG_ON.
Signed-off-by Mateusz Nosek <[email protected]>
Reviewed-by Andrew Morton <[email protected]>
Reviewed-by Wei Yang <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/mm_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/mm_init.c renamed from mm/mm_init.c~mm-mm_initc-clean-code-use-build_bug_on-when-comparing-compile-time-constant +1 -1
@@ -37,7 +37,7 @@ void __init mminit_verify_zonelist(void)struct zonelist *zonelist;int i, listid, zoneid; -BUG_ON (MAX_ZONELISTS >2 ); +BUILD_BUG_ON (MAX_ZONELISTS >2 );for (i =0 ; i <MAX_ZONELISTS *MAX_NR_ZONES ; i++) {/* Identify the zone and nodelist */
_
Patches currently in -mm which might be from [email protected] are