File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ fn __build_modinfo_string_base(
133
133
format ! (
134
134
"
135
135
{cfg}
136
+ #[doc(hidden)]
136
137
#[link_section = \" .modinfo\" ]
137
138
#[used]
138
139
pub static {variable}: [u8; {length}] = *b\" {string}\\ 0\" ;
@@ -599,12 +600,14 @@ pub fn module(ts: TokenStream) -> TokenStream {
599
600
600
601
// Loadable modules need to export the `{{init,cleanup}}_module` identifiers
601
602
#[cfg(MODULE)]
603
+ #[doc(hidden)]
602
604
#[no_mangle]
603
605
pub extern \" C\" fn init_module() -> kernel::c_types::c_int {{
604
606
__init()
605
607
}}
606
608
607
609
#[cfg(MODULE)]
610
+ #[doc(hidden)]
608
611
#[no_mangle]
609
612
pub extern \" C\" fn cleanup_module() {{
610
613
__exit()
@@ -614,6 +617,7 @@ pub fn module(ts: TokenStream) -> TokenStream {
614
617
// and the identifiers need to be unique
615
618
#[cfg(not(MODULE))]
616
619
#[cfg(not(CONFIG_HAVE_ARCH_PREL32_RELOCATIONS))]
620
+ #[doc(hidden)]
617
621
#[link_section = \" {initcall_section}\" ]
618
622
#[used]
619
623
pub static __{name}_initcall: extern \" C\" fn() -> kernel::c_types::c_int = __{name}_init;
@@ -629,12 +633,14 @@ pub fn module(ts: TokenStream) -> TokenStream {
629
633
);
630
634
631
635
#[cfg(not(MODULE))]
636
+ #[doc(hidden)]
632
637
#[no_mangle]
633
638
pub extern \" C\" fn __{name}_init() -> kernel::c_types::c_int {{
634
639
__init()
635
640
}}
636
641
637
642
#[cfg(not(MODULE))]
643
+ #[doc(hidden)]
638
644
#[no_mangle]
639
645
pub extern \" C\" fn __{name}_exit() {{
640
646
__exit()
You can’t perform that action at this time.
0 commit comments