From 8c1ebdc298be2b588a11286300ea2e1a8c533748 Mon Sep 17 00:00:00 2001 From: Michael Nemanov Date: Sun, 4 Aug 2024 21:47:05 +0300 Subject: [PATCH] kernel_patch_verify: Fix -j cpu_count If you set the CPUs count (e.g, kernel_patch_verify -j8), then CPUS var is set to 8. However, the assignment to KM_CPUS happens only if CPUS is empty (if [ -z "$CPUS" ]; then) so effectively KM_CPUS is set only if -j switch is not provided. Move the KM_CPUS out of the empty CPUS check. Signed-off-by: Michael Nemanov Signed-off-by: Nishanth Menon --- kernel_patch_verify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel_patch_verify b/kernel_patch_verify index 85cc6bb..9433e54 100755 --- a/kernel_patch_verify +++ b/kernel_patch_verify @@ -999,8 +999,8 @@ git config --global core.abbrev 12 if [ -z "$CPUS" ]; then CPUS=$DEF_CPUS - KM_CPUS=$CPUS fi +KM_CPUS=$CPUS if [ -n "$CC" ]; then KM_C="CC=$CC"