From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796036991; b=utz0dn1hg9gcRb9BaBvqRnLlWzsTX+qPNxqC1Vj2dEuUf9pGhaeSulEgS/j5cSPMomOJ +Ti8yLLmmYQlh0TFGYTu6phgIKXBQTNIVEvBhM+Bb5WJOWN1GGZgWuK0zpWYc6xMGzwQq 3vUlul8mCewwDdZV7lr6Ktqo4ugfiRuevzL62MEw7AX+RGvKJ6PvttZ0SOxMEgwicKQHI 0eAINItT/SEPdJH/iuGHWzVvFuWACPBJocdTGOOYb7hQyiUt54cELNhuHxV0IgB8u0IO5 M/L6aBEoi8+uGyAWpPq9KBpTvREAqxjfv7WB3sbgWY+SEuSmWZx9BlMgd7XasT1T/ag== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796036991; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=jCbr/rLIUd72axGiyOqZvNguBt2tudVXBFvOriCF5sM=; b=0H/VHUfgeVXUQ5KKU+ja6YoC2o/oXdAlY+4KZiuKpvksZ94lfzKRTx4dlfERfe7vVdJL YJqEB4UtYPJix3k8EWE/1kgT8YsRm0BhSIrAzZkEosjkvkugHXf/RSQU4HYRBhjJln5CS eJAg1ArfrcLXysbfFdKuoeS5jEZNDAPe/PzhEZanYgzFaF0F46ydcFVpRG4kQslO76p8P ZKM7yVsYWNdLMvIDdCK1JrZZFLSgPm0pP+PRqVUGEg101Ts2d8t+mqrmcP4l3d36r4f4H 1qCuA0EbRUne5K5WsSAqmyq1S/0Mb5zgcexsSHqC6GOmfRI8311O3aCZIYzx/ZRVWQA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=MWKVogeD; arc=none smtp.remote-ip=209.85.221.72 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D22E606A320 for ; Mon, 30 Nov 2026 11:09:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8D22E606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=MWKVogeD Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-4aa0500c979so6319247f8f.2 for ; Mon, 30 Nov 2026 03:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796036990; x=1796641790; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jCbr/rLIUd72axGiyOqZvNguBt2tudVXBFvOriCF5sM=; b=MWKVogeDgFfzEbY0TvmFPCbAAL6ec/wEy83Y7ksdKJINCczrhhbin/t5ya56LDYVSJ 1zfJaqURxFQoRyvB+VoB5zLu15OvIgLhBCgKH+DeJfBR+uKoKnbupmOpSrAee43fA/2X N4ziM26Xmyzae/qMNqtX49kt1jpHDhDpyuJG1EL7ZdPxd7FaulQdWna/GlOxm6BozzAK koE+LhIpEA3QmVdgwyrm2FR+jrHv5b28HE7nLlzUTyTEorQnQgnKw2pGFQ8mJLC/9o4m EC/lPxx3J+XX52pDBW6ViHbbJphGyIuEN+3E4ynCx2xNmGtkCk3wttwazi2hiGKcmwJA ThoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796036990; x=1796641790; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jCbr/rLIUd72axGiyOqZvNguBt2tudVXBFvOriCF5sM=; b=x02Vn7Oiy1Ibu0oLRFBFFJGWLWFH4jK0gMcnXRJKEoySB7IL4RmQwkn6Q/V7JKItP0 fnzX3ZlexcaAhB5om3WK432QwvVt3h+WoaxhSiJ/JGpKiyXSBdurDtZQxOdqdRQEBW37 pNwNKmCeCz6/pNN0kWiRI4xz3157cyzMPL5nnDwLp+4hgroeZuJNstPrKm1bbEqtzNNN 5V33XJOmOhJqFffp7jr9tagVpxyaAnof42T9l36eX/RZzGUu6Ui+R3TASnwp8Gxkztlh yAdu/nXXPs2bZsiG/StSKXgZk9DRAiymORyV5orYpgIvxW5NwFJb4lqK9VygJeFLuyKI 7yBA== X-Forwarded-Encrypted: i=1; AL+hErF1U0nlKpS/q95rzXQHgVyCDTsFNYnbHsvfOZkToM9k80UJ/cG/IxW/piE3QANr5QINx7/v7h8MP2v4rXuKzg==@vger.kernel.org X-Gm-Message-State: APuU4Z/m7yr53I3Tup0kZ4jG+D529NGk9ma5qrkaAv2+qQrZqBHgWqJa +Ci2sEXqzjqvZ70O88/CLmzw/H3KkhUEOYBdxn2sMLKAfA/gB1JiKxm50JtCiWHe/+OTjBWMWiM F5rXzfUrh+Q/GWyug0Q== X-Received: from wmbz25.prod.google.com ([2002:a05:600c:c099:b0:4a1:e676:5ad4]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:c173:b0:4a1:813f:2a60 with SMTP id 5b1f17b1804b1-4bb88800134mr644013715e9.11.1796036989486; Mon, 30 Nov 2026 03:09:49 -0800 (PST) Date: Mon, 30 Nov 2026 11:09:48 +0000 In-Reply-To: <20261128-dev-prelude-v1-1-c93babe3c9d6@garyguo.net> X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261128-dev-prelude-v1-1-c93babe3c9d6@garyguo.net> X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog Message-ID: <20261130110948.3390932-1-aliceryhl@google.com> Subject: Re: [PATCH] rust: prelude: remove `size_of` and friends From: Alice Ryhl To: Gary Guo Cc: Alice Ryhl , Miguel Ojeda , Boqun Feng , "=?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?=" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , "=?UTF-8?q?Onur=20=C3=96zkan?=" , rust-for-linux@vger.kernel.org, Gary Guo Content-Type: text/plain; charset="UTF-8" On Sat, Nov 28, 2026 at 04:07:22PM +0000, Gary Guo wrote: > `align_of`, `align_of_val`, `size_of` and `size_of_val` has been in the > core prelude since Rust 1.80. As kernel's minimum Rust version is 1.85, the > manual inclusion of these in the kernel prelude is no longer necessary, > thus remove it. > > Signed-off-by: Gary Guo This patch introduces two `unused_imports` warnings, because these two files only used `size_of` from the kernel prelude: warning: unused import: `crate::prelude::*` --> rust/kernel/num/casts.rs:44:5 | 44 | use crate::prelude::*; | ^^^^^^^^^^^^^^^^^ warning: unused import: `prelude` --> drivers/gpu/nova-core/num.rs:10:5 | 10 | prelude::*, // | ^^^^^^^ Those two unused prelude imports will need to be removed as well. Alice