Patch "rust: kernel: fix THIS_MODULE header path in ThisModule doc comment" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    rust: kernel: fix THIS_MODULE header path in ThisModule doc comment

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rust-kernel-fix-this_module-header-path-in-thismodul.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5af38abe12c7c52085835f2e8ede62ccecce87da
Author: Yutaro Ohno <yutaro.ono.418@xxxxxxxxx>
Date:   Mon Oct 21 11:58:47 2024 +0900

    rust: kernel: fix THIS_MODULE header path in ThisModule doc comment
    
    [ Upstream commit 8b55dc8610acf816a66373be53ca6e3bbe2d313a ]
    
    The doc comment for `ThisModule` incorrectly states the C header file
    for `THIS_MODULE` as `include/linux/export.h`, while the correct path is
    `include/linux/init.h`. This is because `THIS_MODULE` was moved in
    commit 5b20755b7780 ("init: move THIS_MODULE from <linux/export.h> to
    <linux/init.h>").
    
    Update the doc comment for `ThisModule` to reflect the correct header
    file path for `THIS_MODULE`.
    
    Fixes: 5b20755b7780 ("init: move THIS_MODULE from <linux/export.h> to <linux/init.h>")
    Signed-off-by: Yutaro Ohno <yutaro.ono.418@xxxxxxxxx>
    Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/ZxXDZwxWgoEiIYkj@ohnotp
    Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs
index b5f4b3ce6b482..032c9089e6862 100644
--- a/rust/kernel/lib.rs
+++ b/rust/kernel/lib.rs
@@ -83,7 +83,7 @@ pub trait Module: Sized + Sync + Send {
 
 /// Equivalent to `THIS_MODULE` in the C API.
 ///
-/// C header: [`include/linux/export.h`](srctree/include/linux/export.h)
+/// C header: [`include/linux/init.h`](srctree/include/linux/init.h)
 pub struct ThisModule(*mut bindings::module);
 
 // SAFETY: `THIS_MODULE` may be used from all threads within a module.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux