From nobody Sat Feb 7 06:21:05 2026 Received: from esa2.hc555-34.eu.iphmx.com (esa2.hc555-34.eu.iphmx.com [23.90.104.147]) (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 6595B1DB13A for ; Sun, 18 Jan 2026 12:02:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=23.90.104.147 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768737723; cv=none; b=ENhnUnAfthL7HHNEw1ZSyQ2S3bc6q6t7abvb3jg2+JOsGhFHvN2eVT4Xo19ptJfD1OyoPfkinVUWzteCC83XqBR7sr37E++FF2KTl2QqmJkuaX15tVBsxR/WeHKvrCHwfo6eWLEU5R1/XpW/ZZMqrKc1874qy38Mf9oXNXidCfk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768737723; c=relaxed/simple; bh=5Smkb1g8W+A2f7J1cFGBH0uGRnb887HMFTqx3WYh14M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RBp6TUXwoEEzz2nAW6DeKLn0ZizLPnV1cf2gVKxiO3Gv/7HybhXz7mZ4t4f8iCmNy5+Awe8L9ukVE33H6BVW7YJZOkKeA8+aCG4P4wefOZP5VIgDGD8HoByOFnlDnoK50u2DP10im9E3Zc3D+xJ+8R6pF0/sj+GxD3Js9qjzFUI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mobileye.com; spf=pass smtp.mailfrom=mobileye.com; dkim=fail (0-bit key) header.d=mobileye.com header.i=@mobileye.com header.b=mIhhn/2e reason="key not found in DNS"; arc=none smtp.client-ip=23.90.104.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mobileye.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mobileye.com Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mobileye.com header.i=@mobileye.com header.b="mIhhn/2e" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mobileye.com; i=@mobileye.com; q=dns/txt; s=MoEyIP; t=1768737720; x=1800273720; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5Smkb1g8W+A2f7J1cFGBH0uGRnb887HMFTqx3WYh14M=; b=mIhhn/2egdPx7o8p9f5FoWXhaygBYYTPYuv2GurrB0y7HmjnIBb1enG6 S2Bd8v2z8tzgsuVXancBh4AQSObm7lCigUXSfwIwY/BlZqlxGirDvTRdv TWgo/fWgvCg5x5ajdTK8LL9DpTEtE9NuYcRZL9qu/LIXcI8mc0TnIvPgq tYUlKhgsx9hLvK/XwGj6JAnR8/7yrSKfRavJzx77fvg+JIDVb/9ARCjJH BQ6D0SvKJVeBLdvJmmvaY+VPFi9PpV9bMMD7WO7aUPY1gxAcBaek8L1Pl E/TeGJD33fiU7ystXIISHFbOB1kvWWG2WEYdPOIRQ7EFhFFr7ttcW53UU Q==; X-CSE-ConnectionGUID: mrxA2oQCTsG3Dz8JlChgIg== X-CSE-MsgGUID: M7GGbIU4QqqolKopW4jwGg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from unknown (HELO ces01_data.me-corp.lan) ([146.255.191.134]) by esa2.hc555-34.eu.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2026 14:01:53 +0200 X-CSE-ConnectionGUID: BwGDgmvsQ3iRbQq3gaDxEw== X-CSE-MsgGUID: eHaj+k3XTwKHXLL+kgBd4A== Received: from unknown (HELO epgd034.me-corp.lan) ([10.154.54.6]) by ces01_data.me-corp.lan with SMTP; 18 Jan 2026 14:03:44 +0200 Received: by epgd034.me-corp.lan (sSMTP sendmail emulation); Sun, 18 Jan 2026 14:01:51 +0200 From: Pnina Feder To: akpm@linux-foundation.org Cc: pmladek@suse.com, bhe@redhat.com, linux-kernel@vger.kernel.org, lkp@intel.com, mgorman@suse.de, mingo@redhat.com, peterz@infradead.org, pnina.feder@mobileye.com, rostedt@goodmis.org, senozhatsky@chromium.org, tglx@linutronix.de, vkondra@mobileye.com Subject: [PATCH v1] panic: add panic_redirect_cpu declaration to header Date: Sun, 18 Jan 2026 14:01:49 +0200 Message-ID: <20260118120149.986849-1-pnina.feder@mobileye.com> 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" Add the extern declaration for panic_redirect_cpu to linux/panic.h to fix the sparse warning: kernel/panic.c:305:10: sparse: sparse: symbol 'panic_redirect_cpu' was not declared. Should it be static? The variable needs to be declared in the header alongside panic_cpu since it is used for synchronization when redirecting panic to a specific CPU via the panic_force_cpu=3D boot parameter. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202601161825.pUmb6FsK-lkp@int= el.com/ Signed-off-by: Pnina Feder --- include/linux/panic.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/panic.h b/include/linux/panic.h index a00bc0937698..f1dd417e54b2 100644 --- a/include/linux/panic.h +++ b/include/linux/panic.h @@ -41,6 +41,14 @@ void abort(void); * PANIC_CPU_INVALID means no CPU has entered panic() or crash_kexec(). */ extern atomic_t panic_cpu; + +/* + * panic_redirect_cpu is used when panic is redirected to a specific CPU v= ia + * the panic_force_cpu=3D boot parameter. It holds the CPU number that ori= ginally + * triggered the panic before redirection. A value of PANIC_CPU_INVALID me= ans + * no redirection has occurred. + */ +extern atomic_t panic_redirect_cpu; #define PANIC_CPU_INVALID -1 =20 bool panic_try_start(void); --=20 2.43.0