summaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-05-18 11:05:26 +0200
committerJulia Lawall <Julia.Lawall@inria.fr>2021-05-18 11:09:59 +0200
commitf5b3553b5019f22ac668651ea9cddb9fa675ac41 (patch)
treefdbdf96e93b1c064926e44ce156beafdd17908f2 /scripts/coccinelle
parentaeb300c1dbfc77b493728f608dd14d6814676546 (diff)
downloadlinux-f5b3553b5019f22ac668651ea9cddb9fa675ac41.tar.bz2
scripts: coccicheck: fix troubles on non-English builds
When LANG is not set to English, the logic which checks the number of CPUs fail, as the messages can be localized, and the logic at: THREADS_PER_CORE=$(lscpu | grep "Thread(s) per core: " | tr -cd "[:digit:]") will not get the number of threads per core. This causes the script to not run properly, as it will produce a warning: $ make coccicheck COCCI=$PWD/scripts/coccinelle/misc/add_namespace.cocci MODE=report drivers/media/ ./scripts/coccicheck: linha 93: [: nĂºmero excessivo de argumentos Fix it by forcing LANG=C when calling lscpu. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Diffstat (limited to 'scripts/coccinelle')
0 files changed, 0 insertions, 0 deletions