Skip to content

Commit

Permalink
kbuild: fix adjust_autoksyms.sh for modules that need only one symbol
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Pitre authored and Michal Marek committed May 10, 2016
1 parent f110e0f commit a7c65b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/adjust_autoksyms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ cat > "$new_ksyms_file" << EOT
*/
EOT
sed -ns -e '3s/ /\n/gp' "$MODVERDIR"/*.mod | sort -u |
sed -ns -e '3{s/ /\n/g;/^$/!p;}' "$MODVERDIR"/*.mod | sort -u |
while read sym; do
if [ -n "$CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX" ]; then
sym="${sym#_}"
Expand Down

0 comments on commit a7c65b9

Please sign in to comment.