This repository was archived by the owner on Mar 7, 2021. It is now read-only.
File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -87,28 +87,37 @@ macro_rules! kernel_module {
87
87
88
88
( @attribute author, $value: expr) => {
89
89
#[ link_section = ".modinfo" ]
90
+ #[ used]
90
91
pub static AUTHOR_KEY : [ u8 ; 7 ] = * b"author=" ;
91
92
#[ link_section = ".modinfo" ]
93
+ #[ used]
92
94
pub static AUTHOR_VALUE : [ u8 ; $value. len( ) ] = * $value;
93
95
#[ link_section = ".modinfo" ]
96
+ #[ used]
94
97
pub static AUTHOR_NUL : [ u8 ; 1 ] = * b"\0 " ;
95
98
} ;
96
99
97
100
( @attribute description, $value: expr) => {
98
101
#[ link_section = ".modinfo" ]
102
+ #[ used]
99
103
pub static DESCRIPTION_KEY : [ u8 ; 12 ] = * b"description=" ;
100
104
#[ link_section = ".modinfo" ]
105
+ #[ used]
101
106
pub static DESCRIPTION_VALUE : [ u8 ; $value. len( ) ] = * $value;
102
107
#[ link_section = ".modinfo" ]
108
+ #[ used]
103
109
pub static DESCRIPTION_NUL : [ u8 ; 1 ] = * b"\0 " ;
104
110
} ;
105
111
106
112
( @attribute license, $value: expr) => {
107
113
#[ link_section = ".modinfo" ]
114
+ #[ used]
108
115
pub static LICENSE_KEY : [ u8 ; 8 ] = * b"license=" ;
109
116
#[ link_section = ".modinfo" ]
117
+ #[ used]
110
118
pub static LICENSE_VALUE : [ u8 ; $value. len( ) ] = * $value;
111
119
#[ link_section = ".modinfo" ]
120
+ #[ used]
112
121
pub static LICENSE_NUL : [ u8 ; 1 ] = * b"\0 " ;
113
122
} ;
114
123
}
You can’t perform that action at this time.
0 commit comments