Repository navigation
Commit 1be5fa6
committed
modpost: remove is_vmlinux() call in check_for_{gpl_usage,unused}()
check_exports() is never called for vmlinux because mod->skip is set
for vmlinux.
Hence, check_for_gpl_usage() and check_for_unused() are not called
for vmlinux, either. is_vmlinux() is always false here.
Remove the is_vmlinux() calls, and hard-code the ".ko" suffix.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>1 parent 3379576 commit 1be5fa6
1 file changed
Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2144 | 2144 | | |
2145 | 2145 | | |
2146 | 2146 | | |
2147 | | - | |
2148 | | - | |
2149 | 2147 | | |
2150 | 2148 | | |
2151 | | - | |
2152 | | - | |
| 2149 | + | |
| 2150 | + | |
2153 | 2151 | | |
2154 | 2152 | | |
2155 | | - | |
2156 | | - | |
| 2153 | + | |
| 2154 | + | |
2157 | 2155 | | |
2158 | 2156 | | |
2159 | | - | |
2160 | | - | |
| 2157 | + | |
| 2158 | + | |
2161 | 2159 | | |
2162 | 2160 | | |
2163 | 2161 | | |
| |||
2169 | 2167 | | |
2170 | 2168 | | |
2171 | 2169 | | |
2172 | | - | |
2173 | | - | |
2174 | 2170 | | |
2175 | 2171 | | |
2176 | 2172 | | |
2177 | | - | |
2178 | | - | |
| 2173 | + | |
| 2174 | + | |
2179 | 2175 | | |
2180 | 2176 | | |
2181 | 2177 | | |
| |||
0 commit comments