From nobody Tue Dec 2 01:06:14 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E8173148DF; Mon, 24 Nov 2025 15:19:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763997591; cv=none; b=ZfBRCRMaeRinwxuHRCZz+714WrijQpddIBbt2VmtTWV6R88BM0WVr61nLuSRiMuJJXWX+ufU59K/cU0PmDdP1rA2nej1C+0c+S5qdYMVAnjL3pg0ICM7ifoWy0IIPxybHcK9u/HSkUiK2ATXN73WDhNDg92FJ4A0+HiJqvIm9zk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763997591; c=relaxed/simple; bh=h+uXhzfxLe+WQBro751yLnx+zqgOzC+COhhonF/XjoA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jLYYBCUr5spP7MHxK0qUuZr5tZ76e8SB5zVzSviglDTL7dfUqLK+lG/XYB/z6JYdyp/wGr6sjSR6nVffjyF0b4wpd2QLz8Z/sGd81HuzB+J/iAF5VUUFDKqrZaNmEZu41Lp/tfRaNDkBsQ2jmSFH9mCXdQA2k7xH6XtoNhRBXTU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nAeyLd3p; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nAeyLd3p" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46863C19421; Mon, 24 Nov 2025 15:19:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763997590; bh=h+uXhzfxLe+WQBro751yLnx+zqgOzC+COhhonF/XjoA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nAeyLd3pZxz7xnwKEvgBgKkJb3Rmw0FIuD36fupN1UXxNfdearJ4WaTmwWODgs5zF +WG1XZBFM/0UsRC28tnmjrqQVDTA4AYYRGX+GirPe98H9NVnPzSdW4dl0yJMjc9xHE 0UMSDW7HqGDJXRGEgm/KBD0633DuDdsG8mceBgo6KgAe8qkze+5/bbhSSqqyVw9t+U LL7IELEae5hcaMAsDLdc9QsCbqeUylPmmIpV4QiN9Vve5CktTlqKyhUbU/9Nqm2odL xYztoov/qjiubfvoyd8cmEEAK9OQK5xajEy8XtCxckljU4/ymUbDNeW9/HYsBIfBLN EWgtZJd/iuwnw== From: Miguel Ojeda To: Miguel Ojeda , Alex Gaynor , Nathan Chancellor , Nicolas Schier Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , rust-for-linux@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Jesung Yang Subject: [PATCH v2 12/20] rust: quote: add SPDX License Identifiers Date: Mon, 24 Nov 2025 16:18:24 +0100 Message-ID: <20251124151837.2184382-13-ojeda@kernel.org> In-Reply-To: <20251124151837.2184382-1-ojeda@kernel.org> References: <20251124151837.2184382-1-ojeda@kernel.org> 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" Originally, when the Rust upstream `alloc` standard library crate was vendored in commit 057b8d257107 ("rust: adapt `alloc` crate to the kernel"), the SPDX License Identifiers were added to every file so that the license on those was clear. Thus do the same for the `quote` crate. This makes `scripts/spdxcheck.py` pass. Reviewed-by: Gary Guo Tested-by: Gary Guo Tested-by: Jesung Yang Signed-off-by: Miguel Ojeda --- rust/quote/ext.rs | 2 ++ rust/quote/format.rs | 2 ++ rust/quote/ident_fragment.rs | 2 ++ rust/quote/lib.rs | 2 ++ rust/quote/runtime.rs | 2 ++ rust/quote/spanned.rs | 2 ++ rust/quote/to_tokens.rs | 2 ++ 7 files changed, 14 insertions(+) diff --git a/rust/quote/ext.rs b/rust/quote/ext.rs index 92c2315b182d..977d2f0c5919 100644 --- a/rust/quote/ext.rs +++ b/rust/quote/ext.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + use super::ToTokens; use core::iter; use proc_macro2::{TokenStream, TokenTree}; diff --git a/rust/quote/format.rs b/rust/quote/format.rs index ec0bbf38ba37..6e3d55b6e427 100644 --- a/rust/quote/format.rs +++ b/rust/quote/format.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + /// Formatting macro for constructing `Ident`s. /// ///
diff --git a/rust/quote/ident_fragment.rs b/rust/quote/ident_fragment.rs index 6c2a9a87acb4..d98106f17666 100644 --- a/rust/quote/ident_fragment.rs +++ b/rust/quote/ident_fragment.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + use alloc::borrow::Cow; use core::fmt; use proc_macro2::{Ident, Span}; diff --git a/rust/quote/lib.rs b/rust/quote/lib.rs index 0a12d607f279..cc1637660a75 100644 --- a/rust/quote/lib.rs +++ b/rust/quote/lib.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + //! [![github]](https://github.com/dtolnay/quote) [![crates-io]](http= s://crates.io/crates/quote) [![docs-rs]](https://docs.rs/quote) //! //! [github]: https://img.shields.io/badge/github-8da0cb?style=3Dfor-the-b= adge&labelColor=3D555555&logo=3Dgithub diff --git a/rust/quote/runtime.rs b/rust/quote/runtime.rs index c704ca89411f..09a94f5dd4fe 100644 --- a/rust/quote/runtime.rs +++ b/rust/quote/runtime.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + use self::get_span::{GetSpan, GetSpanBase, GetSpanInner}; use crate::{IdentFragment, ToTokens, TokenStreamExt}; use core::fmt; diff --git a/rust/quote/spanned.rs b/rust/quote/spanned.rs index 6eba64445d89..54ce9177f45e 100644 --- a/rust/quote/spanned.rs +++ b/rust/quote/spanned.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::ToTokens; use proc_macro2::extra::DelimSpan; use proc_macro2::{Span, TokenStream}; diff --git a/rust/quote/to_tokens.rs b/rust/quote/to_tokens.rs index f373092b650f..1af1089e1423 100644 --- a/rust/quote/to_tokens.rs +++ b/rust/quote/to_tokens.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + use super::TokenStreamExt; use alloc::borrow::Cow; use alloc::rc::Rc; --=20 2.52.0