From nobody Mon Feb 9 03:12:15 2026 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 8576E346AF9 for ; Sat, 10 Jan 2026 15:09:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768057752; cv=none; b=ujkVz4hrEQgJRl+kY0k9kBiv1QirkgjszDrlfOPIRsCY8LD/KbQCriwkke7dKdmUokG9cGI59+nsBdN4H31biDtbNUPmlavXjGRPaYmEwmQno/acPBC1NEVKZ27oSHgKATlb8Kv9QCffgqjkzYvYIYGq8E2onbQcqQZ+XDU5Yl0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768057752; c=relaxed/simple; bh=NbSZJOFudokz6C+njmD0VOJLlYmt/34Y4GRpm6Ry5SM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ddb5f5QjnjFO0uDyAvqaIZL4x0iM7imGKaUmIITv+1ZyhKwh3Ssub0mE0NjWuk/IBs7S/yDjdIIWEhsqI1pmKhtL44njYve5u3DMRsq5aigoxhJDsqu5STnyaUJ0zvxFD0Fj+kSQrugsWnT92JCeKfIzXBfPxBQyVIeRfqTQz7g= 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.44 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-f44.google.com with SMTP id 2adb3069b0e04-59b6df3d6b4so4852969e87.0 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=YWJ4nUqalRd1cC0Ow2Z37iAtGrA66YAFILR7BIa2g5fTFcE4RtstnY89HnWiOb+LQC V/33D7RLvo6355/OGkTsuUmD0J4QlCl/O3d+16dfHekGHUeWkc5eylG2lHCIZqUmXo2h RUbgt+NV30WYbwoDXorF/dt1I5podcA4KmRBnSblutYLMYeRfDiN0MeelCTnyCy3Vtdp 1dgdjLPYVdrLJhDlDMeolAXhy3/kkJXJH8eoUqA//8oB78tRVpul4lwsRGf89uQJfWIv OMg/qTZcrAzM4QIvaSEuSclRA8MkRVAbRThITNaWjOiSX6+ie4MET+W09Fxxm+D5d1FA hejg== X-Forwarded-Encrypted: i=1; AJvYcCUrHx+D80SjN5hVt6WLj7PRSIrTanBcqe9cHy8n53HHegL38F7oIoATAUro/dLcK9A1ZgwyELTRCXKrWa8=@vger.kernel.org X-Gm-Message-State: AOJu0YwaGl5AKogE08eTXqR2MQXIF5/vh28W4E+IuJK3wTef5oYOtOqh YmB5wCZsVaXQdSrPVnc7o5EA970AapJqPOGbbCjAEUYmQikXhgDsReI1 X-Gm-Gg: AY/fxX5Z+dMackSLX0BD3w2/Y/kcENdMfGOQ+OkuMSFxmrmVhwXGZf3NQoEdU5jYBbO TsupDSr4voMeejuOpk5EgovDPHQc+RcW8YYVZt8SHzA8EXxhh27Lq7LgIwyveWGTVIEiM301Ktq 0WYY3gywMNsLJW0QFk2WUgJ9kyD1oLU7anK/jk6uVJwG98atIZFXqXc8m25B4+Dtv8dERP+kZg+ jUTTdCl+Xv2LwCjLMqCnsAmu78EwZonJhLJi56AhtzlAqAuZE/aZRmu+H8/bDhnsSe8OkkVTewO yo7bxJWB23aW98zHVq4+KLdbNsiPn4IAA9m0Zlg50UH/UWb8NmD6a1Tlo4Ce5iDgnf8t65l2UGj kexgWKs/U4mm5UR3tW0GDiE1EODSYuB/ShlGPPsQnLtiiD4jkOPbDwblA7ftI75qvmFkekE374O 3zwPCOOT3Mj1C4fp1QMSOxzFdia11MBqdwEhZYq+d0p77sTi6SpKmGJ9GQkqvGJAICSUTmtcJP 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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)] --=20 2.43.0