From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A5CF6CDA8; Mon, 8 Apr 2024 13:01:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712581285; cv=none; b=e8j0mt7/iN/Re3dxF+7hK0v8n9ntbv0Ae7uhfXpnYlytFQwwVk5U/i/eMCHnSy4z8v1AsXq6yfukPHypEY/6CE4pOrqKYi0EatJA+kvrZqqo8lDRmDMaFY/JR4yguc7iGaXSC4O9HvQvkjO+NJda49RhhLBs3Gx6CNRS355Y0sY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712581285; c=relaxed/simple; bh=p2KMVWv67NTy8nvjTERmGmxyCAdE+iB4OHdf3eXimlU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GKVW32sCH+S0aviKKPJiELNxihKehgtr5irkwKM4KFcwjgTEh0T0Afftf4opl2hEXi2zU7cuMlSGbwCobt+TTOX+TQHiGKuzFyPlehXaI1YhjQU5xqn7/3CJLQn5/pnGcELSAkoHRa8IC+bqoeHwsx/JxVZnFIA2HJyUaH4NC0k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GN4WWLoS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GN4WWLoS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB922C433F1; Mon, 8 Apr 2024 13:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712581285; bh=p2KMVWv67NTy8nvjTERmGmxyCAdE+iB4OHdf3eXimlU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GN4WWLoStGAyr5r6t7gCZklr1oi2NRFViNmLdgv7HV9GYRwiSbF9TJKjnrpAcUjIv 2ouWtONtEuKs4Jy7pKIdQfIF3jl5jVCcdh2RyUZN1Yz/3iCQ1kyVZafFxZiGDb0TA+ UnqinmkShCWOjyngN3ypcSV7WcTwFrx3x+qjQWY4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Randy Dunlap , Igor Zhbanov , "David S. Miller" , sparclinux@vger.kernel.org, Sam Ravnborg , Andrew Morton , Arnd Bergmann , Andreas Larsson , Sasha Levin Subject: [PATCH 5.15 020/690] sparc64: NMI watchdog: fix return value of __setup handler Date: Mon, 8 Apr 2024 14:48:06 +0200 Message-ID: <20240408125400.288355617@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240408125359.506372836@linuxfoundation.org> References: <20240408125359.506372836@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap [ Upstream commit 3ed7c61e49d65dacb96db798c0ab6fcd55a1f20f ] __setup() handlers should return 1 to obsolete_checksetup() in init/main.c to indicate that the boot option has been handled. A return of 0 causes the boot option/value to be listed as an Unknown kernel parameter and added to init's (limited) argument or environment strings. Also, error return codes don't mean anything to obsolete_checksetup() -- only non-zero (usually 1) or zero. So return 1 from setup_nmi_watchdog(). Fixes: e5553a6d0442 ("sparc64: Implement NMI watchdog on capable cpus.") Signed-off-by: Randy Dunlap Reported-by: Igor Zhbanov Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru Cc: "David S. Miller" Cc: sparclinux@vger.kernel.org Cc: Sam Ravnborg Cc: Andrew Morton Cc: stable@vger.kernel.org Cc: Arnd Bergmann Cc: Andreas Larsson Signed-off-by: Andreas Larsson Link: https://lore.kernel.org/r/20240211052802.22612-1-rdunlap@infradead.org Signed-off-by: Sasha Levin --- arch/sparc/kernel/nmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/nmi.c b/arch/sparc/kernel/nmi.c index 060fff95a305c..fbf25e926f67c 100644 --- a/arch/sparc/kernel/nmi.c +++ b/arch/sparc/kernel/nmi.c @@ -274,7 +274,7 @@ static int __init setup_nmi_watchdog(char *str) if (!strncmp(str, "panic", 5)) panic_on_timeout = 1; - return 0; + return 1; } __setup("nmi_watchdog=", setup_nmi_watchdog); -- 2.43.0