Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scripts/nsdeps: adjust to the format change of *.mod files

Commit 22f26f21774f ("kbuild: get rid of duplication in *.mod files")
changed the format of *.mod files to put one object per line, but missed
to adjust scripts/nsdeps.

Fixes: 22f26f21774f ("kbuild: get rid of duplication in *.mod files")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+2 -3
+2 -3
scripts/nsdeps
··· 34 34 local mod=${1%.ko:} 35 35 shift 36 36 local namespaces="$*" 37 - local mod_source_files="`cat $mod.mod | sed -n 1p \ 38 - | sed -e 's/\.o/\.c/g' \ 39 - | sed "s|[^ ]* *|${src_prefix}&|g"`" 37 + local mod_source_files=$(sed "s|^\(.*\)\.o$|${src_prefix}\1.c|" $mod.mod) 38 + 40 39 for ns in $namespaces; do 41 40 echo "Adding namespace $ns to module $mod.ko." 42 41 generate_deps_for_ns $ns "$mod_source_files"