From nobody Thu Oct 2 02:13:26 2025 Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 091132C235F for ; Wed, 24 Sep 2025 09:43:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758706995; cv=none; b=onTJmuyH8P1HxLq6SIUFFOltqJ49CkmLlI1B3u//q2Ea3NC1tqbILhxv3r14EOD42oi6Z13ktxHOIL1DuzjvqzwAYrJD5s2R6fZNnwiLbqVP7BWSDzu7oMELTztxM0Xj66XQXOpYPVjFA2l4HQ94j/TbKmc+7o7Cyg8hnd41fhM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758706995; c=relaxed/simple; bh=TUgLiGxDhUBNujXAz4/8i71qkrAVk31eyCx0NzQUnhI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CjltnTXmife0Qc5zvPLtFhUpyPhkslzOXnD1L6s78nNRErnn5maQktupARYgdemgumAYoUARbJ0Ry9jRFYSiAbypdUMRtdi5GYNUqVQV+5VW9AWqeVcuyySWS0jD4X4/PB05a1/fV7I70jyJC8VNJIsTkl2Sxxkl7dTLitWK374= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=XbDm9YBW; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="XbDm9YBW" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=FrZhqw2qKNsHXM7f6+h49Tbw3S+CFwKNA3MhdCroe7c=; t=1758706990; x=1759916590; b=XbDm9YBWLpMP9wXlPlTl16QTCykrLILyqCnIdkhnm812CvJuswWL/fJi4+SpBiwQydnnwxKUxVl wW8xHRouz2bI9tqUf0RlWn9XJKxC9UqO66f+THat4StKk6f0l18vA1mNs1M9D3Twjd0SIH0hHVUt8 ilMPJLcZf/OweucRidiMKQC3UMRmJk/Ck48WtQGttT2l41JOvJQHEp/6qSYGyQq7j8DFSu+RfF6XG w798i5EtHMhlrorLsU39D1bAUy4bovMwdB0/Cev7wwrmJ2qlXQ911tjg7RzbizndfU+l2AMvO/q0W Oa1R0XlOMw+FfPNk+AG4+9zL9J8Xrxo+LLuw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.98.2) (envelope-from ) id 1v1M1j-00000008YSI-0gVh; Wed, 24 Sep 2025 11:43:07 +0200 From: Johannes Berg To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Johannes Berg Subject: [PATCH] panic: remove CONFIG_PANIC_ON_OOPS_VALUE Date: Wed, 24 Sep 2025 11:43:04 +0200 Message-ID: <20250924094303.18521-2-johannes@sipsolutions.net> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Johannes Berg There's really no need for this since it's 0 or 1 when CONFIG_PANIC_ON_OOPS is disabled/enabled, so just use IS_ENABLED() instead. The extra symbol goes back to the original code adding it in commit 2a01bb3885c9 ("panic: Make panic_on_oops configurable"). Signed-off-by: Johannes Berg --- Just caught my eye. No idea who should merge it or if anyone cares. --- kernel/panic.c | 2 +- lib/Kconfig.debug | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/kernel/panic.c b/kernel/panic.c index 72fcbb5a071b..5b73fdd781e0 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -53,7 +53,7 @@ static unsigned int __read_mostly sysctl_oops_all_cpu_bac= ktrace; #define sysctl_oops_all_cpu_backtrace 0 #endif /* CONFIG_SMP */ =20 -int panic_on_oops =3D CONFIG_PANIC_ON_OOPS_VALUE; +int panic_on_oops =3D IS_ENABLED(CONFIG_PANIC_ON_OOPS); static unsigned long tainted_mask =3D IS_ENABLED(CONFIG_RANDSTRUCT) ? (1 << TAINT_RANDSTRUCT) : 0; static int pause_on_oops; diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 49a1748b9f24..7f5e2490a3b7 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1067,12 +1067,6 @@ config PANIC_ON_OOPS =20 Say N if unsure. =20 -config PANIC_ON_OOPS_VALUE - int - range 0 1 - default 0 if !PANIC_ON_OOPS - default 1 if PANIC_ON_OOPS - config PANIC_TIMEOUT int "panic timeout" default 0 --=20 2.51.0