summaryrefslogtreecommitdiff
path: root/rust/syn/parse_macro_input.rs
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2025-11-24 16:18:28 +0100
committerMiguel Ojeda <ojeda@kernel.org>2025-11-24 17:15:45 +0100
commit69942c0a8965f311ed7ddf842f160c9cfdcda73a (patch)
tree26b6004e4a93ecf10efbc9cfeb0879c66b015c8e /rust/syn/parse_macro_input.rs
parent808c999fc9e7c366fd47da564e69d579c1dc8279 (diff)
rust: syn: 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 `syn` 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-17-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/syn/parse_macro_input.rs')
-rw-r--r--rust/syn/parse_macro_input.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/syn/parse_macro_input.rs b/rust/syn/parse_macro_input.rs
index f0660aedd7df..2f977754d41c 100644
--- a/rust/syn/parse_macro_input.rs
+++ b/rust/syn/parse_macro_input.rs
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
/// Parse the input TokenStream of a macro, triggering a compile error if the
/// tokens fail to parse.
///