mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 10:16:16 +07:00
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>
This commit is contained in:
parent
f110e0fec8
commit
a7c65b9729
@ -59,7 +59,7 @@ cat > "$new_ksyms_file" << EOT
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
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
|
while read sym; do
|
||||||
if [ -n "$CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX" ]; then
|
if [ -n "$CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX" ]; then
|
||||||
sym="${sym#_}"
|
sym="${sym#_}"
|
||||||
|
Loading…
Reference in New Issue
Block a user