rust/kernel/sync/lock.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Suggested-by: Alice Ryhl <alice@ryhl.io>
Signed-off-by: Ben Gooding <ben.gooding.dev@gmail.com>
---
rust/kernel/sync/lock.rs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/rust/kernel/sync/lock.rs b/rust/kernel/sync/lock.rs
index 95466201dab7..04413f6f145a 100644
--- a/rust/kernel/sync/lock.rs
+++ b/rust/kernel/sync/lock.rs
@@ -72,8 +72,10 @@ pub unsafe trait Backend {
/// A mutual exclusion primitive.
///
-/// Exposes one of the kernel locking primitives. Which one is exposed depends on the lock [backend](Backend)
-/// specified as the generic parameter `B`.
+/// Exposes one of the kernel locking primitives. Which one is exposed depends on the lock
+/// [backend] specified as the generic parameter `B`.
+///
+/// [backend]: Backend
#[pin_data]
pub struct Lock<T: ?Sized, B: Backend> {
/// The kernel lock object.
--
2.34.1
Hi Ben, On Sun, May 7, 2023 at 6:27 PM Ben Gooding <ben.gooding.dev@gmail.com> wrote: > > Suggested-by: Alice Ryhl <alice@ryhl.io> > Signed-off-by: Ben Gooding <ben.gooding.dev@gmail.com> Thanks for the patch! Several notes: - Missing commit message -- in general, please check your patches with `scripts/checkpatch.pl` and please read https://docs.kernel.org/process/submitting-patches.html. - This patch goes on top of the previous one you sent but, in the kernel workflow, what you are expected to do is send a v2 of your patch series instead. You can use `-v2` in `git format-patch` for that. - This patch is not just reflowing as the title implies, but it also changes the style of the link -- is there a reason for that? If yes, this should be explained. Cheers, Miguel
Hi Miguel, On 08/05/2023 21:37, Miguel Ojeda wrote: > Hi Ben, > > On Sun, May 7, 2023 at 6:27 PM Ben Gooding <ben.gooding.dev@gmail.com> wrote: >> Suggested-by: Alice Ryhl <alice@ryhl.io> >> Signed-off-by: Ben Gooding <ben.gooding.dev@gmail.com> > Thanks for the patch! Several notes: > > - Missing commit message -- in general, please check your patches > with `scripts/checkpatch.pl` and please read > https://docs.kernel.org/process/submitting-patches.html. > > - This patch goes on top of the previous one you sent but, in the > kernel workflow, what you are expected to do is send a v2 of your > patch series instead. You can use `-v2` in `git format-patch` for > that. > > - This patch is not just reflowing as the title implies, but it also > changes the style of the link -- is there a reason for that? If yes, > this should be explained. > > Cheers, > Miguel Thank you very much for your feedback, this is really helpful as I'm learning the process. I've submitted a proper v2 of my patch based on your feedback which is hopefully much more like what you would expect - please let me know. Many thanks, Ben
© 2016 - 2026 Red Hat, Inc.