]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: quote: add SPDX License Identifiers
authorMiguel Ojeda <ojeda@kernel.org>
Mon, 24 Nov 2025 15:18:24 +0000 (16:18 +0100)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 24 Nov 2025 16:15:42 +0000 (17:15 +0100)
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>
rust/quote/ext.rs
rust/quote/format.rs
rust/quote/ident_fragment.rs
rust/quote/lib.rs
rust/quote/runtime.rs
rust/quote/spanned.rs
rust/quote/to_tokens.rs

index 92c2315b182dd3d511e17d04c7ebc6ae516f151c..977d2f0c59192445f58b5d5f20fca6184e51c9ae 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
 use super::ToTokens;
 use core::iter;
 use proc_macro2::{TokenStream, TokenTree};
index ec0bbf38ba3776d5270ab90e5c5dd29b16f5ce64..6e3d55b6e42771b2db33abf9fcf9d778d3e60cac 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
 /// Formatting macro for constructing `Ident`s.
 ///
 /// <br>
index 6c2a9a87acb41139196dababe437e6a39979368f..d98106f17666207d8bd0ac48ad0fee3b2cd8f93b 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
 use alloc::borrow::Cow;
 use core::fmt;
 use proc_macro2::{Ident, Span};
index 0a12d607f279a686d4a24c1e43839aa65930f1d2..cc1637660a752524c34b0abc306e2064890411a4 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
 //! [![github]](https://github.com/dtolnay/quote)&ensp;[![crates-io]](https://crates.io/crates/quote)&ensp;[![docs-rs]](https://docs.rs/quote)
 //!
 //! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
index c704ca89411f941765d8cfee3c5381912036699f..09a94f5dd4fedc060b7b8e3e7378bccc58656fd8 100644 (file)
@@ -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;
index 6eba64445d89541e20ec5d4bb64a77e1504cfc2d..54ce9177f45ea345ed28e5f139544059e07d7a19 100644 (file)
@@ -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};
index f373092b650fcb5c7777e7da0091168119ce5a81..1af1089e1423dc514089ec428153efa1e3146763 100644 (file)
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
 use super::TokenStreamExt;
 use alloc::borrow::Cow;
 use alloc::rc::Rc;