Skip to contentSkip to conversation

init-mainc-remove-unreachable-check-in-obsolete_checksetup.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Oct 11

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: init/main.c: remove unreachable check in obsolete_checksetup()
has been removed from the -mm tree. Its filename was
init-mainc-remove-unreachable-check-in-obsolete_checksetup.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Sang-Heon Jeon <[email protected]>
Subject: init/main.c: remove unreachable check in obsolete_checksetup()
Date: Tue, 22 Sep 2026 22:26:27 +0900

Since commit 1ecfea06386c ("init.h: remove long-dead __setup_null_param() macro"), .init.setup entries cannot have a NULL setup_func.

So remove the NULL check.

No functional change.

---

 init/main.c |    4 ----
 1 file changed, 4 deletions(-)
init/main.c renamed from init/main.c~init-mainc-remove-unreachable-check-in-obsolete_checksetup +0 -4
@@ -215,10 +215,6 @@ static bool __init obsolete_checksetup(c
 				 * params and __setups of same names 8( */
 				if (line[n] == '\0' || line[n] == '=')
 					had_early_param = true;
-			} else if (!p->setup_func) {
-				pr_warn("Parameter %s is obsolete, ignored\n",
-					p->str);
-				return true;
 			} else if (p->setup_func(line + n))
 				return true;
 		}

_

Patches currently in -mm which might be from [email protected] are

mm-swapops-remove-unused-is_hwpoison_entry.patch