summaryrefslogtreecommitdiff
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2022-12-21 02:02:03 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-12-21 02:02:03 +0300
commit1644d755d0b06d0f1ee93e1c44336c29386546b4 (patch)
tree58f4fb795fed3f4b2c1cb6bbac9ed25b3134d390 /scripts/clang-tools/gen_compile_commands.py
parentb29e6ece454f7f4822b40441da393c3969c312b3 (diff)
parentb6bb9676f2165d518b35ba3bea5f1fcfc0d969bf (diff)
downloadlinux-1644d755d0b06d0f1ee93e1c44336c29386546b4.tar.xz
Merge branch 'linus'
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
-rwxr-xr-xscripts/clang-tools/gen_compile_commands.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/clang-tools/gen_compile_commands.py b/scripts/clang-tools/gen_compile_commands.py
index d800b2c0af97..0227522959a4 100755
--- a/scripts/clang-tools/gen_compile_commands.py
+++ b/scripts/clang-tools/gen_compile_commands.py
@@ -138,10 +138,10 @@ def cmdfiles_for_modorder(modorder):
"""
with open(modorder) as f:
for line in f:
- ko = line.rstrip()
- base, ext = os.path.splitext(ko)
- if ext != '.ko':
- sys.exit('{}: module path must end with .ko'.format(ko))
+ obj = line.rstrip()
+ base, ext = os.path.splitext(obj)
+ if ext != '.o':
+ sys.exit('{}: module path must end with .o'.format(obj))
mod = base + '.mod'
# Read from *.mod, to get a list of objects that compose the module.
with open(mod) as m: