summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2016-04-28 23:33:38 +0200
committerMichal Marek <mmarek@suse.com>2016-05-10 17:25:29 +0200
commita7c65b9729e4a5e9c0809784bc52466b0dbaafa7 (patch)
tree08768d7c44231777792f409610ccf7263ee151aa /scripts
parentkbuild: fix ksym_dep_filter when multiple EXPORT_SYMBOL() on the same line (diff)
downloadlinux-a7c65b9729e4a5e9c0809784bc52466b0dbaafa7.tar.xz
linux-a7c65b9729e4a5e9c0809784bc52466b0dbaafa7.zip
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/adjust_autoksyms.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/adjust_autoksyms.sh b/scripts/adjust_autoksyms.sh
index 5bf538f1ed79..8dc1918b6783 100755
--- a/scripts/adjust_autoksyms.sh
+++ b/scripts/adjust_autoksyms.sh
@@ -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#_}"