From nobody Sun Jun 14 19:00:51 2026 Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (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 E29B62BE62E for ; Sun, 5 Apr 2026 18:18:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775413105; cv=none; b=H/nwKsDC/QIc82dzQ9jnnmcNa+U9HMQOkCUzzCM4Auy7gPms74en8WsMqfLGc23NoiRO9hrIorsdV4PvP+yjr0BA38ybdJfFmR0d4+DrsNNZ+2wXO3oxklAA6xPakMp/GyNdSwDiCXMsjbj3YRP+g174i8gLSmBNGco7e+7glrs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775413105; c=relaxed/simple; bh=TAg7IQ2gFYg7vAYmOxMT9N2MVgW45NRFzxRB4lWfARI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hxAJzWshg7OAkPBJIsyMflc2qSwF/1VJl0eZ7/lwbS0ve4QMgmPnhMDl4+9ks3K/GuNr9FByqnSvQT4JVCamiAGLHJLA4+Rg8yE2ybTMu/yoGkkbRIhxyUBvwcYBj+YS/d2ijkg3+rHamEXtM3ypvChbtST7IIs2qEu038HnOQ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=rjp.ie; spf=pass smtp.mailfrom=rjp.ie; dkim=pass (1024-bit key) header.d=rjp.ie header.i=@rjp.ie header.b=avsGxJMT; arc=none smtp.client-ip=91.218.175.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=rjp.ie Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rjp.ie Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rjp.ie header.i=@rjp.ie header.b="avsGxJMT" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjp.ie; s=key1; t=1775413101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=tWZVGZooQxfHzVn2tr+BubjhIgJL0N76O5A26GluNVA=; b=avsGxJMTdhCQrdSSabnbP2OzwRCcwFzmuHoIiJ0UE5LZMHIZ+EgCvZnv3n2utnMCJUHx8c AWMu8uL3mxdxPD7bDkGDqU/RKoL3JOqYum8IF4L1v0prZ0flKky9zPHMTA0+ogqvinPpLm ifUhdKW+j5FVwuoiEL/DbiwZq0VePZQ= From: Ronan Pigott To: tglx@kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Ronan Pigott Subject: [PATCH v2] x86/split_lock: Don't warn about unknown parameter Date: Sun, 5 Apr 2026 10:28:25 -0700 Message-ID: <20260405181807.3906-1-ronan@rjp.ie> 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 X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" The split_lock_detect command line parameter is handled in sld_setup() shortly after cpu_parse_early_param() but still before parse_early_param(). Add a dummy __setup function so that parse_early_param() doesn't later complain about the "unknown" parameter split_lock_detect=3D, and pass it along to init. Signed-off-by: Ronan Pigott --- Changes in v2: - Added parens for function names in commit message - Added my S-o-b --- arch/x86/kernel/cpu/bus_lock.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/kernel/cpu/bus_lock.c b/arch/x86/kernel/cpu/bus_lock.c index fb166662bc0d..c8fec79ed557 100644 --- a/arch/x86/kernel/cpu/bus_lock.c +++ b/arch/x86/kernel/cpu/bus_lock.c @@ -132,6 +132,12 @@ static void __init sld_state_setup(void) sld_state =3D state; } =20 +static __init int setup_split_lock_detect(char *arg) +{ + return 1; +} +__setup("split_lock_detect=3D", setup_split_lock_detect); + static void __init __split_lock_setup(void) { if (!split_lock_verify_msr(false)) { --=20 2.53.0