File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
drivers/char/rust_example Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 66name = " rust_example"
77version = " 0.1.0"
88edition = " 2018"
9+ publish = false
910
1011[lib ]
1112crate-type = [" staticlib" ]
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ name = "kernel"
55version = " 0.1.0"
66authors = [" Rust for Linux Contributors" ]
77edition = " 2018"
8+ publish = false
89
910[dependencies ]
1011bitflags = " 1"
Original file line number Diff line number Diff line change @@ -53,13 +53,16 @@ macro_rules! kernel_module {
5353
5454 // Built-in modules are initialized through an initcall pointer
5555 //
56- // TODO: find a proper way to emulate the C macro, including
57- // dealing with `HAVE_ARCH_PREL32_RELOCATIONS`
56+ // TODO: find a proper way to emulate the C macro (`module_init`),
57+ // including dealing with `HAVE_ARCH_PREL32_RELOCATIONS`
5858 #[ cfg( not( module) ) ]
5959 #[ link_section = ".initcall6.init" ]
6060 #[ used]
6161 pub static __initcall: extern "C" fn ( ) -> $crate:: c_types:: c_int = init_module;
6262
63+ // TODO: pass the kernel module name here to generate a unique,
64+ // helpful symbol name (the name would also useful for the `modinfo`
65+ // issue below).
6366 #[ no_mangle]
6467 pub extern "C" fn init_module( ) -> $crate:: c_types:: c_int {
6568 match <$module as $crate:: KernelModule >:: init( ) {
You can’t perform that action at this time.
0 commit comments