diff options
| author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2016-04-28 17:33:38 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.com> | 2016-05-10 11:25:29 -0400 |
| commit | a7c65b9729e4a5e9c0809784bc52466b0dbaafa7 (patch) | |
| tree | 08768d7c44231777792f409610ccf7263ee151aa /scripts | |
| parent | f110e0fec89935879a76aebe1726dce3fcb6ab13 (diff) | |
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-x | scripts/adjust_autoksyms.sh | 2 |
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 | |||
| 59 | */ | 59 | */ |
| 60 | 60 | ||
| 61 | EOT | 61 | 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 | |
| 63 | while read sym; do | 63 | while read sym; do |
| 64 | if [ -n "$CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX" ]; then | 64 | if [ -n "$CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX" ]; then |
| 65 | sym="${sym#_}" | 65 | sym="${sym#_}" |
