From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 70964346ACF for ; Sat, 10 Jan 2026 15:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768057751; cv=none; b=cFlMF55XmlI4ZTSEMmH83Tk4fb9bwGafm1P/jrnejf/dbOVowIxitstoPKSQ6G/8Gl29yKSMPwgPnePmQhZP2DojU5bzBzvWsko2e9lTsPWgzw4nB0M1z4v69+i6EhOzz03pyG2pd2RilMDVy4DyEXf7wsCjtTw/XTPOnPjFORs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768057751; c=relaxed/simple; bh=NbSZJOFudokz6C+njmD0VOJLlYmt/34Y4GRpm6Ry5SM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GvS6WHB1hKC2GzTc/LKH6cVhksOyt7s8HQiS5AdfRx2QB+XUdLKVg9A0qTGdUeQjBJqXp6A71xpYsZfJLGghVnSx7RZpYZBL8oKrKWlCXBwzPKQjHQu6pzRHKVoe3ioqnYn5WjfEVeaf6Xi2oBdo5SXEpzCatFBK7rc3MLrxOrE= 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=eH3Ah2zA; arc=none smtp.client-ip=209.85.167.54 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="eH3Ah2zA" Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-59b76844f89so2762479e87.1 for ; Sat, 10 Jan 2026 07:09:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768057749; x=1768662549; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hJEsrOJPO59o/eeH09HtsmYQCeq/k0b3qKzFe+dbMbk=; b=eH3Ah2zAX0rbaB8aQB3tVqyqJjqMHW9ms7t1kkkXK3xU8tudfeMNA49JMRJb44UkM0 Ir6rFnR/LUWxkQF5Nf0KGruohsVTwO47LOFgwQsjvS2UU6NiFFiDGOytMzqse7kkeRV/ q8YcF28hmBiFBLUKhn4QmEw5LnQrVILTT3ClJ8O8CMIbXZUFVQxr9tzwc7SuUw4Iz2Dq DmAYz7DtCN8W6BDyyNSMlRTlecpe+CKfBHWeD5eQFVlISALtN4JbEI1sb1HiGGEPSb+k 1cQHHZC/wULg0VVTnOxvg3r1JPBONO3ePvFJVkDEdIm0cDSz4iIzmdEihdkIQdqbw5PF Fe8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768057749; x=1768662549; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=hJEsrOJPO59o/eeH09HtsmYQCeq/k0b3qKzFe+dbMbk=; b=WVrfgYmHkGv3P5qHFdzsdSQOZxXDwv0UkH+Cf1V0vunj9u8djgI20VIySq17Qxjvpq PcomaCDTWKRz/pyfHnRsBnMFxDOwt7+IanrJ2A92gL2iCWjBx26+e4aW94+72iTM1N1Y PbCPL0lgvJ3lS3RSVMtyF0hWdSoinPZmvTVASyJL6SIG6x0a6vy94Xb853BsoYKFnxqE PAjFjKW40XCs2u3kHJuoQtQdufZKw9e39cK+Hs9O536R1csZpWZ4Mi0Y/tLzBf4d0M+E bgX5HA1ZBs58Weo57oN7ADm28gKq+dBz0g23q9+ewKIxY76f4kHqmVkMQ1C79t0z4P05 68Qg== X-Forwarded-Encrypted: i=1; AJvYcCWgxkz3fBXuHCEVMbmtOQ7mnpsJJMhmNdqkdFRfK7nVSCcGb2elOOCmc7eLaVtNF+LDydJLn5LNq3gNhBHy@vger.kernel.org X-Gm-Message-State: AOJu0YxYl98RVsx2X9YVweH7rphes5hKPi8Dw6KYGJoGrzaiFYAHPP/7 RHizGsYanX2Su9yu4e4jviBJUZj2Q2IToiMHivnsbILNtkxUcbuFoHB/ X-Gm-Gg: AY/fxX7jaVA/6OwAN26w+ICklwxoffhaaCh9O0PSygzyZYRFGm/877CQvzsehLzmM87 HYHHG90FXQcikR/Iom1uwiNtbekZFQ6vRVo1x1T1pJNS5Uk7P/4hh+rA665spw5x0Bi9SEijXie 7oM7pzFkLfI462OMjjh6JHdsBzWrTJOxcTyeWqHHDZSc6fy5ZkrUUMyXCOVp0xYWpY7EJGSuLlK PYbmfKjjY20erL/6q4hJZc6cItZXxIDdTsIiNTp3W7/Gd6mprjkFYPu293cjcISR89ZWVgRbYJL 8RufkIRDSVSgNQTDIP2e7W4MdttRBAG+eqktfjuSOXJTFlX03ukIBL5FJh0178mgNuT6Q8GJrRl 32fY1BPAG0DIWV4kuF2eRkcMxeFrLBZjB6wTXQbXzGHHqg/6sJrZt3OmsflZYsyYJ+8+zCbcsnD GtHX9ppEE46IGZPt7YhT4RedrnpG93l0/zBjKxqUmd94Fk+l2h2SYXCwlgyREMNbbSFR+1xZQB X-Google-Smtp-Source: AGHT+IHBhceUlOKxssp/V2ATdBwshPYNs4sQJe/+zeKAqqJ46EkHQ/gZgH8aiQ2/64zYDmL4eWntMw== X-Received: by 2002:a05:6512:3985:b0:59b:73cf:2f17 with SMTP id 2adb3069b0e04-59b73cf3399mr3933492e87.50.1768057748448; Sat, 10 Jan 2026 07:09:08 -0800 (PST) Received: from LT-5CG5341NQ4.nordic.imtech.com (37-33-148-7.bb.dnainternet.fi. [37.33.148.7]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-59b75543a64sm2137059e87.49.2026.01.10.07.09.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jan 2026 07:09:07 -0800 (PST) From: Kari Argillander Date: Sat, 10 Jan 2026 17:07:59 +0200 Subject: [PATCH RFC v3 01/15] rust: enable const_refs_to_static feature Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260110-this_module_fix-v3-1-97a3d9c14e8b@gmail.com> References: <20260110-this_module_fix-v3-0-97a3d9c14e8b@gmail.com> In-Reply-To: <20260110-this_module_fix-v3-0-97a3d9c14e8b@gmail.com> To: Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Alexandre Courbot Cc: Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Kari Argillander X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1768057742; l=837; i=kari.argillander@gmail.com; s=20251219; h=from:subject:message-id; bh=NbSZJOFudokz6C+njmD0VOJLlYmt/34Y4GRpm6Ry5SM=; b=4vkJvuu2jFVi+J3bLxy06QVBvfjoWAjPvuHGbbprllQZav7Q9xO/ZRqlxXGFrxCXa3bazL5zy va5jcyoAN3cAG28OQlcqT85GHBUcPBR4z1/do6sC61LQ6JNh/kU4qNP X-Developer-Key: i=kari.argillander@gmail.com; a=ed25519; pk=RwSxyhTpE3z4sywdDbIkC3q33ZQLNyhYWxT44iTY6r4= Enable the const_refs_to_static Rust feature to allow taking references to static items in const contexts. This is required for using ThisModule when constructing static Rust structures. The Rust support already relies on features available in Rust 1.83, and const_refs_to_static has been available since Rust 1.78. Signed-off-by: Kari Argillander --- rust/kernel/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index 6d637e2fed1b..510d4bfc7c2b 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -36,6 +36,7 @@ #![feature(const_option)] #![feature(const_ptr_write)] #![feature(const_refs_to_cell)] +#![feature(const_refs_to_static)] // // Expected to become stable. #![feature(arbitrary_self_types)] -- 2.43.0