From 4f8875127386ca3ad78c8218cb8c115c3ff6163f Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Apr 03 2024 14:14:52 +0000 Subject: - scripts/check-kernel-fix: document LINUX_GIT requirement - scripts/common-functions: --- diff --git a/scripts/check-kernel-fix b/scripts/check-kernel-fix index fe099f3..64f2eb0 100755 --- a/scripts/check-kernel-fix +++ b/scripts/check-kernel-fix @@ -10,6 +10,7 @@ usage() echo "Expect upstream kernel tree sha or CVE number as the parameter." echo "The script checks whether the commit is already in the upstream" echo "baseline or backported in kernel-source tree." + echo "Requires LINUX_GIT pointing to Linus git tree clone." echo echo "If backported, checks for CVE/bsc references and recommends adding these" echo "if they are missing. (Requires VULNS_GIT pointing to" diff --git a/scripts/common-functions b/scripts/common-functions index 2cd4a78..e13a41c 100644 --- a/scripts/common-functions +++ b/scripts/common-functions @@ -201,7 +201,7 @@ sha_in_upstream() local upstream_git=${2:-$LINUX_GIT} [ -z "$sha" ] && fail "sha_in_upstream: No sha provided" - [ -z "$upstream_git" ] && fail "sha_in_upstream: No upstream git tree" + [ -z "$upstream_git" ] && fail "sha_in_upstream: No upstream git tree. LINUX_GIT should point to Linus git tree clone." sha_merged_in_upstream_tag $sha origin/master $upstream_git }