]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/mm: fix awk usage in charge_reserved_hugetlb.sh and hugetlb_reparenting_tes...
authorJuntong Deng <juntong.deng@outlook.com>
Tue, 26 Sep 2023 18:19:44 +0000 (02:19 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 30 Sep 2023 00:20:48 +0000 (17:20 -0700)
commitbbe246f875d064ecfb872fe4f66152e743dfd22d
tree7c07d6d019c8532389dc41997743328b53a86c9f
parent24526268f4e38c9ec0c4a30de4f37ad2a2a84e47
selftests/mm: fix awk usage in charge_reserved_hugetlb.sh and hugetlb_reparenting_test.sh that may cause error

According to the awk manual, the -e option does not need to be specified
in front of 'program' (unless you need to mix program-file).

The redundant -e option can cause error when users use awk tools other
than gawk (for example, mawk does not support the -e option).

Error Example:
awk: not an option: -e

Link: https://lkml.kernel.org/r/VI1P193MB075228810591AF2FDD7D42C599C3A@VI1P193MB0752.EURP193.PROD.OUTLOOK.COM
Signed-off-by: Juntong Deng <juntong.deng@outlook.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/charge_reserved_hugetlb.sh
tools/testing/selftests/mm/hugetlb_reparenting_test.sh