Modules fixes for v5.4-rc7
- Fix `make nsdeps` for modules composed of multiple source files. Since $mod_source_files is not in quotes in the call to generate_deps_for_ns(), not all the source files for a module were being passed to spatch. Signed-off-by: Jessica Yu <jeyu@kernel.org> -----BEGIN PGP SIGNATURE----- iQIcBAABCgAGBQJdxX6jAAoJEMBFfjjOO8FyoOMP/1zKwy+SMmof6yVBO1VjQ+CZ GGTJjRfODFREOH+4nYAgKyIBErU4PF1LbF6ft237CmKq0A7FRKsz1EM6rqY4S8NX QdSCZ/6vKxOl/5OQOSF7DhcSGxyGXiPKgD9HXitsmGLSZfrZm1xy/QDx+PG7/TTX RmB70vQjMqqSRIxcr3FTuoGdGRo7hL5GUdPnwy/rinTFWsRGkSkAF7HIJBpNnaBH aVk8sZkrP56yNlbSEwKwqOXT6fnsvzatVK9x5dalMskk6nk/XJ3YY/xKRdbX7rv/ Qq7OirMg0h2E+DEpGWvkE9HcsizdU3qLdLzCJQNcZHilFnO2FU8JZB1WC888wdJj aKN2iAgnYHCGvT2ntps75VqJj63vbdqeXZwjYBdBpER7c34/LYrukqzilsMrvJdm YmPqsve5zBhPKWe0Cj/6RNPt/OYxL30UT69RHimkrhbJNAo5OK4lrOxGaasVj0BF 48uZ3+yvWSa5o4Cbbi0e/f0KuArOKifnhsmG1V9Eazxo2ZqLFmLXF2ESIPq6Lynh O0a0uQDc5YUQvZ4OQ/u2k0AxAOcY7BFBeScaxRqrAbNau//X4DXPxjXqLaN0x+eq 08yEyxFHDWQdWK5RVDsz9m6kQTLY9MQiWwzL5c2Q9PZt7CXKSVza2rKXT8sf7K2w 5ycJpQOikgAkf+M1QWyw =9XXQ -----END PGP SIGNATURE----- Merge tag 'modules-for-v5.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux Pull modules fix from Jessica Yu: "Fix `make nsdeps` for modules composed of multiple source files. Since $mod_source_files was not in quotes in the call to generate_deps_for_ns(), not all the source files for a module were being passed to spatch" * tag 'modules-for-v5.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux: scripts/nsdeps: make sure to pass all module source files to spatch
This commit is contained in:
commit
6737e76349
|
@ -31,12 +31,12 @@ generate_deps() {
|
||||||
local mod_file=`echo $@ | sed -e 's/\.ko/\.mod/'`
|
local mod_file=`echo $@ | sed -e 's/\.ko/\.mod/'`
|
||||||
local ns_deps_file=`echo $@ | sed -e 's/\.ko/\.ns_deps/'`
|
local ns_deps_file=`echo $@ | sed -e 's/\.ko/\.ns_deps/'`
|
||||||
if [ ! -f "$ns_deps_file" ]; then return; fi
|
if [ ! -f "$ns_deps_file" ]; then return; fi
|
||||||
local mod_source_files=`cat $mod_file | sed -n 1p \
|
local mod_source_files="`cat $mod_file | sed -n 1p \
|
||||||
| sed -e 's/\.o/\.c/g' \
|
| sed -e 's/\.o/\.c/g' \
|
||||||
| sed "s|[^ ]* *|${srctree}/&|g"`
|
| sed "s|[^ ]* *|${srctree}/&|g"`"
|
||||||
for ns in `cat $ns_deps_file`; do
|
for ns in `cat $ns_deps_file`; do
|
||||||
echo "Adding namespace $ns to module $mod_name (if needed)."
|
echo "Adding namespace $ns to module $mod_name (if needed)."
|
||||||
generate_deps_for_ns $ns $mod_source_files
|
generate_deps_for_ns $ns "$mod_source_files"
|
||||||
# sort the imports
|
# sort the imports
|
||||||
for source_file in $mod_source_files; do
|
for source_file in $mod_source_files; do
|
||||||
sed '/MODULE_IMPORT_NS/Q' $source_file > ${source_file}.tmp
|
sed '/MODULE_IMPORT_NS/Q' $source_file > ${source_file}.tmp
|
||||||
|
|
Loading…
Reference in New Issue