Merge tag 'kbuild-fixes-v5.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

- Adjust gen_compile_commands.py to the format change of *.mod files

- Remove unused macro in scripts/Makefile.modinst

* tag 'kbuild-fixes-v5.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
kbuild: remove unused cmd_none in scripts/Makefile.modinst
gen_compile_commands: handle multiple lines per .mod file

+3 -6
-3
scripts/Makefile.modinst
··· 28 28 __modinst: $(modules) 29 29 @: 30 30 31 - quiet_cmd_none = 32 - cmd_none = : 33 - 34 31 # 35 32 # Installation 36 33 #
+3 -3
scripts/clang-tools/gen_compile_commands.py
··· 157 157 if ext != '.ko': 158 158 sys.exit('{}: module path must end with .ko'.format(ko)) 159 159 mod = base + '.mod' 160 - # The first line of *.mod lists the objects that compose the module. 160 + # Read from *.mod, to get a list of objects that compose the module. 161 161 with open(mod) as m: 162 - for obj in m.readline().split(): 163 - yield to_cmdfile(obj) 162 + for mod_line in m: 163 + yield to_cmdfile(mod_line.rstrip()) 164 164 165 165 166 166 def process_line(root_directory, command_prefix, file_path):