From nobody Mon Feb 9 08:29:13 2026 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 1047423F42D for ; Tue, 6 Jan 2026 16:13:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767715991; cv=none; b=XMiZBYOx++OsI8vUTyvqDCgJ2TUt08KBsbGIH7iO7bB2mMruG3J1mIPCX2yrFr5oLkVxYlcd3vdbEjqpkJhqxDswkI1CvPe/QAVrevB9nwBmWkbW2fMGXep6gKFsJ8Gmqi+nAAo88eV75h061qVGN5xgJGtlS55Rtx62Pi0oXuo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767715991; c=relaxed/simple; bh=NbSZJOFudokz6C+njmD0VOJLlYmt/34Y4GRpm6Ry5SM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TnJvjdEbnUFYj+rQZUgS+JyZxI9p8B1KwJEwN46RHTSdOQZtp1YlzAlbIj3GE/3e9iGniknjbOStz4R5QWZpMhrDIDsH/Ggd3Ty2fhJwObgaTAPeaY5x/rMndrH8tR4Qz7OTHjjYzk68qghyDJ+Whn7Iy5UX+NQCVOJb1+cHA0w= 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=TVUmsUD0; arc=none smtp.client-ip=209.85.208.178 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="TVUmsUD0" Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-37a3a4d3d53so13716111fa.3 for ; Tue, 06 Jan 2026 08:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767715988; x=1768320788; 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=TVUmsUD080N+VrEELv+AkezLiDaQ6Otrk1yY8QOuSjHSZ0ZqqSxIioidlP7yDfI9Vp bgI1E6XOWA7aveE1+I/Pe38MlHLIuZrKmoKrjt2uyrI59zoGjOOzSWvY0QHFnmqvZrjF +8s9p68R0Kfjy3+LxwGR35xMS80s6ciB6TQliS3TIlK1tiY8EtFlmvexq2GVKqIWV0aQ 6VsyntkP3duobEpnjX34tceKtYbUCNhxX3v4uqwsYgWZVe915ZAeQvYePAX6C/arjC8+ yaP6ccsQLK4TXPH9d43rmNtl4xGAkgv8yMcmHRW/iwYc4W4eyjaqZN6MCIxRMzm4dHe+ bNRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767715988; x=1768320788; 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=ZzPDghHEj1oVVDf9MuQXPL7MuW22koI0gFjKFUT94EJPqlTtUWksIvtORGHQ3F8tv/ CenWMYcJEOSQtHQmmUef/EihulaxKFq47nK9jtUz4OG4OMXdhE7kHJA2iRnnzbHVdqkY vrFSW+4Jny0YPBfRSimIUS07BB7+pknT7ekCbMHrzqb4jgnYJXPPza++CDKzGEYtegyw /seG+0tqiHl/yvSjNtIM/l0+9C2E7kVCBT3fCf6MECjUq9aNHNQ3rh+qMm31j6zPzNGo Gj4+Ryd8HCthV1I1043fjtE4FEpMvLfHOseHXtzlhtwTbnTgfVWkGaNAiXeo/Qtl4xRf NB7w== X-Forwarded-Encrypted: i=1; AJvYcCUVIMDKzZ7TuRje2pjFj+1OOy6dkBDu71lKL+mB0tdvrxW3KKm3UdHbzvIFjn+WwN0roHqhAE/8ugq8VYA=@vger.kernel.org X-Gm-Message-State: AOJu0Ywfed1ZUq/9eHwYNCStOVVpSmLQGQwWou/GqrceQ1vYcrx/I1VP HnT9a3k+Zy1HfkiEKTXZQN3E/ri+TLmyuWUAtpUaviAE0Y3hMVDDZ5h6 X-Gm-Gg: AY/fxX4yV8/R9Vu1Bub+wzWlOrfewGqwduoHvyvjUOUNgFi2vhFM5hfETVrk7GpliIS ORiDtOBwihRNBuFfHF2qFUV5A0QX9VWAGtnMTRh9ruwMAU0ZvB0hr3/bgkzr2y9K53nMUUc5SVK Q/cGb0sSVUF5qirjTXBlQiktrvuBBrm9jyma4VVWlDlrQbiF+5RJAZDn4aHJwO/GMTHXYlxQw1x tjNVqVu8UORrTGEsEaLT1hn6R0SsPVFml2VT9lRkCQLvkOK318g3CitBHIAEryyhooYeP6TDly1 bfEKfpFwaCzrWFROXqSY8Ys2HEah1E9hxtPDddISkfg9cupTPkvKHnIgMR1lgVml1s1DD251skV Y+IInvmWs20XQBY2nKGQdL5yEdyXMxHhVJXMyZrXU8BJI8iFZ4jFPFCTPzvZ4+OsseXn98PtX7a DZ1fSFvF1yQnltYn397CzL03tPhX5h1/HqGC+vBm2zXDnrhUE9yS4q/CDE0yOT0QW8Uc47DVm0+ bD4Zg== X-Google-Smtp-Source: AGHT+IHKaBOSwm4vp1JX09Pd02uyRduDey+97mZMIBnf1kbFiov8dfuABleYNBj8DwXxWVRLUyVm9w== X-Received: by 2002:a05:651c:1542:b0:37a:2c11:2c5c with SMTP id 38308e7fff4ca-382eaae3114mr10488351fa.37.1767715987833; Tue, 06 Jan 2026 08:13:07 -0800 (PST) Received: from LT-5CG5341NQ4.nordic.imtech.com (37-33-180-149.bb.dnainternet.fi. [37.33.180.149]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-382eb91dfbdsm5256091fa.44.2026.01.06.08.13.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jan 2026 08:13:07 -0800 (PST) From: Kari Argillander Date: Tue, 06 Jan 2026 18:11:39 +0200 Subject: [PATCH RFC v2 01/11] 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: <20260106-this_module_fix-v2-1-842ac026f00b@gmail.com> References: <20260106-this_module_fix-v2-0-842ac026f00b@gmail.com> In-Reply-To: <20260106-this_module_fix-v2-0-842ac026f00b@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=1767715983; l=837; i=kari.argillander@gmail.com; s=20251219; h=from:subject:message-id; bh=NbSZJOFudokz6C+njmD0VOJLlYmt/34Y4GRpm6Ry5SM=; b=Gfhq34snEkIsncWb/32XzJ7mDnGJI9NzJRtuJ5elT9FOTK96SZFBM57vqx6E+sIWZvobIIJuP PN2M73QNsKNDRKn+ZIbZM0I884SvUA/BxyVpF2M3n+Jph1Hj6VPLvXV 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