From 9983705ee80f4da2fc88864381066edd4312769d Mon Sep 17 00:00:00 2001 From: Kalle Valo Date: Tue, 8 Feb 2022 16:54:28 +0200 Subject: [PATCH] ath11k-check: don't use global with Kconfig and Makefile Starting from Debian 10 global returns an error with Kconfig and Makefile, add a workaround for that. Signed-off-by: Kalle Valo --- tools/scripts/ath11k/ath11k-check | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/scripts/ath11k/ath11k-check b/tools/scripts/ath11k/ath11k-check index b3f250d..a8a6314 100755 --- a/tools/scripts/ath11k/ath11k-check +++ b/tools/scripts/ath11k/ath11k-check @@ -308,6 +308,10 @@ def run_checkpatch(args): # create tag mapping for f in driver_files: + # global gives an error from Kconfig and Makefile + if f.endswith('Kconfig') or f.endswith('Makefile'): + continue + cmd = 'global -f %s' % (f) output = subprocess.check_output(cmd, shell=True) lines = output.splitlines()