From: Asahi Lina <lina@asahilina.net>
To: "Miguel Ojeda" <ojeda@kernel.org>,
"Alex Gaynor" <alex.gaynor@gmail.com>,
"Wedson Almeida Filho" <wedsonaf@gmail.com>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>
Cc: linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org,
asahi@lists.linux.dev, Asahi Lina <lina@asahilina.net>
Subject: [PATCH 3/4] rust: Add SPDX headers to alloc::vec::{spec_extend, set_len_on_drop}
Date: Fri, 24 Feb 2023 18:11:49 +0900 [thread overview]
Message-ID: <20230224-rust-vec-v1-3-733b5b5a57c5@asahilina.net> (raw)
In-Reply-To: <20230224-rust-vec-v1-0-733b5b5a57c5@asahilina.net>
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 precending two commits for attribution and licensing details.
Signed-off-by: Asahi Lina <lina@asahilina.net>
---
rust/alloc/vec/set_len_on_drop.rs | 2 ++
rust/alloc/vec/spec_extend.rs | 2 ++
2 files changed, 4 insertions(+)
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 1ea9c827afd7..ade317ab96b2 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};
--
2.35.1
next prev parent reply other threads:[~2023-02-24 9:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-24 9:11 [PATCH 0/4] rust: alloc: vec: Add some missing fallible try_* methods Asahi Lina
2023-02-24 9:11 ` [PATCH 1/4] rust: Import upstream `alloc::vec::set_len_on_drop` module Asahi Lina
2023-02-24 9:11 ` [PATCH 2/4] rust: Import upstream `alloc::vec::spec_extend` module Asahi Lina
2023-02-24 9:11 ` Asahi Lina [this message]
2023-02-24 9:11 ` [PATCH 4/4] rust: alloc: vec: Add some try_* methods we need Asahi Lina
2023-04-10 3:42 ` [PATCH 0/4] rust: alloc: vec: Add some missing fallible try_* methods Miguel Ojeda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230224-rust-vec-v1-3-733b5b5a57c5@asahilina.net \
--to=lina@asahilina.net \
--cc=alex.gaynor@gmail.com \
--cc=asahi@lists.linux.dev \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=gary@garyguo.net \
--cc=linux-kernel@vger.kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=wedsonaf@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).