Skip to content

Commit a7c65b9

Browse files
Nicolas PitreMichal Marek
authored andcommitted
kbuild: fix adjust_autoksyms.sh for modules that need only one symbol
When only one symbol was listed and therefore the line didn't contain any space to separate multiple symbols, that symbol got ignored. Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Michal Marek <mmarek@suse.com>
1 parent f110e0f commit a7c65b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/adjust_autoksyms.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ cat > "$new_ksyms_file" << EOT
5959
*/
6060
6161
EOT
62-
sed -ns -e '3s/ /\n/gp' "$MODVERDIR"/*.mod | sort -u |
62+
sed -ns -e '3{s/ /\n/g;/^$/!p;}' "$MODVERDIR"/*.mod | sort -u |
6363
while read sym; do
6464
if [ -n "$CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX" ]; then
6565
sym="${sym#_}"

0 commit comments

Comments
 (0)