From nobody Tue Apr 7 18:46:39 2026 Received: from mail-dy1-f180.google.com (mail-dy1-f180.google.com [74.125.82.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E83D33B962 for ; Thu, 26 Feb 2026 23:47:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772149667; cv=none; b=ASyndkXn8FdZawPhKWmhC1tBJhny8P/cE8vCWfJDOAFBreqJhMoxKUs89TBmPg3u+RIb8NukQaKbnws7tBVejWrtq5Pr9hYXHwNLPIfH+uahvMdTZJUPx+IBFSU3DeMCJp5kQxZ70nisaJpCv/Kdrgt3xqnv67LJt3R6Yg+ZtG4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772149667; c=relaxed/simple; bh=BAjK7gWmE8NiqPCEPZ+0Bww+M+TFsGuQf188GGuI7Ds=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uwQwwvSgUa5oT7ns4gh7kXpb0u55g5nLKs8FprzIzQzBhLzusOmgTeTotBmsrGIUMETLfgE/y00R1j6gNoVX63lax7VDoTUo7snPy8XFjbZ5ZVw1R3kK9ojDWGlIOvs1sBTIbA1WIAmv/zr2UEQtDUB70zSPtIiOEWn+n9pqcNs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fxuvrRSh; arc=none smtp.client-ip=74.125.82.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fxuvrRSh" Received: by mail-dy1-f180.google.com with SMTP id 5a478bee46e88-2bdcfbd0779so1699926eec.0 for ; Thu, 26 Feb 2026 15:47:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772149666; x=1772754466; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gpoHH7pwXOlyNuoaXWey7x0lvhL7U9SeoRRb6VtCgvw=; b=fxuvrRShfPuZ7Rr+Hm8Bxm9iS2163sSdeJ/UcrXVi28FZy4u+Mwvj7uMERRHMReCdP jHh9+thhpxFomJ7FPNjnqkUVdfHwvVX04ifguXiVwQYguS4tLazoflfbLte+7lpzz8z6 6N6GM+J2+hxnkiEcSPCMnHUAMuVYun2F+GeMXr7Q3tMQNIxg2g7du95c8BZKvXVhp4II Oh8RSH3sreziq/gHLwIKjdlgPMmiJ36OhNuIEBJOl/s8cXM59eFEjav8cjlhYVHyFm1P ApvAEtKc1Pyds5gr41DsybndVaDWFyNRj0YqBM12nhfr6z8Pk1NpWCUAJwpsV5cPu6Y1 zr9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772149666; x=1772754466; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gpoHH7pwXOlyNuoaXWey7x0lvhL7U9SeoRRb6VtCgvw=; b=Y3AyaaLx3HIji96zXzeeyk+//Uhd3pXiEmTP1V+fF3XEz6eBR/BXLGVTHqZjxvILxJ ALxDK3a7FlHEHnfz626Odh4IrlrHNmgDT6qjaPTQ2eqYPh35g9NEir4KgrrphHwhutk+ GVOnOBS/mCHWa3Z8twEHcBZzAorXc9oHsGeAiTDRBelbLB9/LjfhiWufA6C/ba1pwNpQ EWTbtaQvysGMqx0OzrbUWDU5sEYte9j6I4gnrEPkTVRbuuH0e0xymEGkRYdcYXYnyol7 dv5nXqPiShwwfKGU+zvoV4+74Mc8yanWQDBBNE4eNgkcCIUpOVd1U4N/4erF0717oRlQ /rFQ== X-Forwarded-Encrypted: i=1; AJvYcCV2g4fsSC5+ycVoHYgoX5BDe5GqnC3FaTOZaXfWu1QNCQVNAuNzCP7L3mMMMkHoth10/pEJ0OK4Ee43YQU=@vger.kernel.org X-Gm-Message-State: AOJu0YygvIySP9ogX9/iw6wkXja1QzPy+lVO88n7whFjx6ymlwFmTeN0 y7mYfloek0gU1BoX4beqXjqquRLn2E1knZ8zv//Lx8mcjpArcuEYJePI X-Gm-Gg: ATEYQzxCElv3/xH9MIMb9yczXMmXYkURUISgZwl93id1FF/JpPVtguCt3PjXknHjR9T PBEWlMn82Stv3hkQaAX7VRSzTmEr2M/xHHZGRPz/68lHDmj2+j81mb/cbSr3vHWJ9cP2j3Xtkbb yQOoIoXICS87xr9KxMnnZataYAI8IVjW7iFmD/fi00MREcefdSS5Oa3gmhjUDF1kSz4AnHkeD13 vjs+crugO6OE9icn9/WN4mJgUbPk0yYVc2dKt8L5gV+oyFVM8ChY9dCBoXv01bCEbQo7gVrZnQU AoAX2qAcHaYUU6RHSN4dkItEWnXviCIwNue0bqVLpCcV5G+VCQmeZgQC/BLD3wwJD3huVOYr6D+ DOIDhXLT5fsT7WxiZcGcnV83z4Nb1/PhEB6wlFeHHqly3Jr56KyUMYGQ9L6zoHep6oLx7lDFrqE ME0OzPEi9TL6DI/y5Dx2B6dtOMRng1fh5qXl66vkRoHswgfLvbJdXOih8bGRKc5KmOYGidycAQb Q== X-Received: by 2002:a05:7300:640c:b0:2b7:95d5:3a32 with SMTP id 5a478bee46e88-2bde1b4dd2cmr411625eec.1.1772149665577; Thu, 26 Feb 2026 15:47:45 -0800 (PST) Received: from localhost (99-122-55-39.lightspeed.sntcca.sbcglobal.net. [99.122.55.39]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2bdd1bcdd95sm2776586eec.6.2026.02.26.15.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Feb 2026 15:47:45 -0800 (PST) From: Matthew Wood To: Miguel Ojeda , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen Cc: Aaron Tomlin , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Tamir Duberstein , David Gow , =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= , linux-modules@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] samples: rust_minimal: demonstrate early_param usage Date: Thu, 26 Feb 2026 15:47:33 -0800 Message-ID: <20260226234736.428341-8-thepacketgeek@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260226234736.428341-1-thepacketgeek@gmail.com> References: <20260226234736.428341-1-thepacketgeek@gmail.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 an early_param annotation to the test_str parameter in the rust_minimal sample module, registering it as "testing_early_str=3D" on the kernel command line. When the module is built-in, this allows the parameter to be set directly on the boot command line without dotted module notation: testing_early_str=3Dworld Signed-off-by: Matthew Wood --- samples/rust/rust_minimal.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/rust/rust_minimal.rs b/samples/rust/rust_minimal.rs index 59955e95e31a..9fc0c0a864d3 100644 --- a/samples/rust/rust_minimal.rs +++ b/samples/rust/rust_minimal.rs @@ -35,6 +35,8 @@ test_str: string { default: "hello", description: "This parameter has a default of hello", + // This will allow the arg to be used in kernel cmdline withou= t dotted notation + early_param: "testing_early_str=3D", } }, } --=20 2.52.0