diff options
author | Asahi Lina <lina@asahilina.net> | 2023-02-24 18:11:49 +0900 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2023-04-10 23:55:19 +0200 |
commit | 3dcb652a3afc4b32cf8d3c1605c8cf22ad174a07 (patch) | |
tree | a5f8543160ebe5f42868c9bb5edfe135d418bc60 /rust | |
parent | ae12ae137270e2e8890dd375aeca6d90556d2629 (diff) | |
download | linux-3dcb652a3afc4b32cf8d3c1605c8cf22ad174a07.tar.gz linux-3dcb652a3afc4b32cf8d3c1605c8cf22ad174a07.tar.bz2 linux-3dcb652a3afc4b32cf8d3c1605c8cf22ad174a07.zip |
rust: Add SPDX headers to alloc::vec::{spec_extend, set_len_on_drop}
Add the missing SPDX headers to these modules, which were just imported
from the Rust stdlib. Doing this in a separate commit makes it easier to
audit that the files have not been modified in the original import.
See the preceding two commits for attribution and licensing details.
Signed-off-by: Asahi Lina <lina@asahilina.net>
Link: https://lore.kernel.org/r/20230224-rust-vec-v1-3-733b5b5a57c5@asahilina.net
[ Reworded for typo. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust')
-rw-r--r-- | rust/alloc/vec/set_len_on_drop.rs | 2 | ||||
-rw-r--r-- | rust/alloc/vec/spec_extend.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/rust/alloc/vec/set_len_on_drop.rs b/rust/alloc/vec/set_len_on_drop.rs index 8b66bc812129..448bf5076a0b 100644 --- a/rust/alloc/vec/set_len_on_drop.rs +++ b/rust/alloc/vec/set_len_on_drop.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + // Set the length of the vec when the `SetLenOnDrop` value goes out of scope. // // The idea is: The length field in SetLenOnDrop is a local variable diff --git a/rust/alloc/vec/spec_extend.rs b/rust/alloc/vec/spec_extend.rs index 506ee0ecfa27..7bb3abb7ee71 100644 --- a/rust/alloc/vec/spec_extend.rs +++ b/rust/alloc/vec/spec_extend.rs @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT + use crate::alloc::Allocator; use core::iter::TrustedLen; use core::ptr::{self}; |