]> git.karo-electronics.de Git - linux-beck.git/blobdiff - scripts/adjust_autoksyms.sh
arm64: dts: uniphier: add SoC-Glue node to UniPhier 64bit SoCs
[linux-beck.git] / scripts / adjust_autoksyms.sh
index 5bf538f1ed79b0f733132a3173888c53511b6d1a..8dc1918b6783dd337590f97b5aa33be5125980ea 100755 (executable)
@@ -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#_}"