From: Nathan Chancellor Date: Tue, 1 Feb 2022 20:56:22 +0000 (-0700) Subject: scripts/pahole-flags.sh: Use pahole-version.sh X-Git-Tag: v6.1-rc5~1746^2~392^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d6c9810eb8915c4ddede707b8e167a1d919e1ca;p=platform%2Fkernel%2Flinux-starfive.git scripts/pahole-flags.sh: Use pahole-version.sh Use pahole-version.sh to get pahole's version code to reduce the amount of duplication across the tree. Signed-off-by: Nathan Chancellor Signed-off-by: Daniel Borkmann Acked-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/20220201205624.652313-4-nathan@kernel.org --- diff --git a/scripts/pahole-flags.sh b/scripts/pahole-flags.sh index e6093ad..c293941 100755 --- a/scripts/pahole-flags.sh +++ b/scripts/pahole-flags.sh @@ -7,7 +7,7 @@ if ! [ -x "$(command -v ${PAHOLE})" ]; then exit 0 fi -pahole_ver=$(${PAHOLE} --version | sed -E 's/v([0-9]+)\.([0-9]+)/\1\2/') +pahole_ver=$($(dirname $0)/pahole-version.sh ${PAHOLE}) if [ "${pahole_ver}" -ge "118" ] && [ "${pahole_ver}" -le "121" ]; then # pahole 1.18 through 1.21 can't handle zero-sized per-CPU vars