diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2025-11-24 18:18:24 +0300 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2025-11-24 19:15:42 +0300 |
| commit | ddfa1b279d088edfb059b6936919faf2070fdd14 (patch) | |
| tree | 5c4c217c618cf986eb143927ee74f02124181aed | |
| parent | a4851eeef3e7cbcd89b5fd0234c04ce408a9ae81 (diff) | |
| download | linux-ddfa1b279d088edfb059b6936919faf2070fdd14.tar.xz | |
rust: quote: add SPDX License Identifiers
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 <gary@garyguo.net>
Tested-by: Gary Guo <gary@garyguo.net>
Tested-by: Jesung Yang <y.j3ms.n@gmail.com>
Link: https://patch.msgid.link/20251124151837.2184382-13-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
| -rw-r--r-- | rust/quote/ext.rs | 2 | ||||
| -rw-r--r-- | rust/quote/format.rs | 2 | ||||
| -rw-r--r-- | rust/quote/ident_fragment.rs | 2 | ||||
| -rw-r--r-- | rust/quote/lib.rs | 2 | ||||
| -rw-r--r-- | rust/quote/runtime.rs | 2 | ||||
| -rw-r--r-- | rust/quote/spanned.rs | 2 | ||||
| -rw-r--r-- | rust/quote/to_tokens.rs | 2 |
7 files changed, 14 insertions, 0 deletions
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. /// /// <br> 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]](https://crates.io/crates/quote) [![docs-rs]](https://docs.rs/quote) //! //! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github 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; |
