Skip to content

Commit afa0819

Browse files
ohno418smb49
authored andcommitted
rust: kernel: fix THIS_MODULE header path in ThisModule doc comment
BugLink: https://bugs.launchpad.net/bugs/2101915 [ Upstream commit 8b55dc8 ] 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 5b20755 ("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: 5b20755 ("init: move THIS_MODULE from <linux/export.h> to <linux/init.h>") Signed-off-by: Yutaro Ohno <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/ZxXDZwxWgoEiIYkj@ohnotp Signed-off-by: Miguel Ojeda <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Koichiro Den <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
1 parent 612e32c commit afa0819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub trait Module: Sized + Sync + Send {
7777

7878
/// Equivalent to `THIS_MODULE` in the C API.
7979
///
80-
/// C header: [`include/linux/export.h`](srctree/include/linux/export.h)
80+
/// C header: [`include/linux/init.h`](srctree/include/linux/init.h)
8181
pub struct ThisModule(*mut bindings::module);
8282

8383
// SAFETY: `THIS_MODULE` may be used from all threads within a module.

0 commit comments

Comments
 (0)