diff options
author | Athira Rajeev <atrajeev@linux.vnet.ibm.com> | 2023-09-07 22:45:40 +0530 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2023-09-26 21:47:12 -0700 |
commit | cefff1f33d2357102f83b99457fd4f9e2ff4eda2 (patch) | |
tree | 702e75aa5a91a52fde94f1bae204a87bd05abb80 /tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh | |
parent | 55312ca7527e018c5ceacc4e311ac201c8bca90d (diff) | |
download | linux-stable-cefff1f33d2357102f83b99457fd4f9e2ff4eda2.tar.gz linux-stable-cefff1f33d2357102f83b99457fd4f9e2ff4eda2.tar.bz2 linux-stable-cefff1f33d2357102f83b99457fd4f9e2ff4eda2.zip |
tests/shell: Fix shellcheck warnings for SC2153 in multiple scripts
Running shellcheck on some of the shell scripts, throws
below warning on shellcheck v0.6. Example:
In tests/shell/coresight/asm_pure_loop.sh line 14:
DATA="$DATD/perf-$TEST-$DATV.data"
^---^ SC2153: Possible misspelling: DATD may not be assigned, but DATA is.
Here, DATD is exported from "lib/coresight.sh" and this
warning can be ignored. Use "shellcheck disable=" to ignore
this check.
Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Tested-by: Ian Rogers <irogers@google.com>
Reviewed-by: Kajol Jain <kjain@linux.ibm.com>
Cc: maddy@linux.ibm.com
Cc: disgoel@linux.vnet.ibm.com
Cc: linuxppc-dev@lists.ozlabs.org
Link: https://lore.kernel.org/r/20230907171540.36736-4-atrajeev@linux.vnet.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh')
-rwxr-xr-x | tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh b/tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh index c17e442ac741..ddcc9bb850f5 100755 --- a/tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh +++ b/tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh @@ -11,6 +11,7 @@ TEST="memcpy_thread" ARGS="16 10 1" DATV="16k_10" +# shellcheck disable=SC2153 DATA="$DATD/perf-$TEST-$DATV.data" perf record $PERFRECOPT -o "$DATA" "$BIN" $ARGS |