]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rust: kernel: fix THIS_MODULE header path in ThisModule doc comment
authorYutaro Ohno <yutaro.ono.418@gmail.com>
Mon, 21 Oct 2024 02:58:47 +0000 (11:58 +0900)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 21 Oct 2024 18:35:53 +0000 (20:35 +0200)
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@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/ZxXDZwxWgoEiIYkj@ohnotp
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/lib.rs

index 620de74d128f9f94096d71c5b1b8d9db8785c713..b62451f64f6ed7d31bd432f6ff333ad6ac143bbe 100644 (file)
@@ -85,7 +85,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.