From: Tiezhu Yang <yangtiezhu@loongson.cn>
To: Luis Chamberlain <mcgrof@kernel.org>,
Shuah Khan <shuah@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Jessica Yu <jeyu@kernel.org>
Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
Markus Elfring <Markus.Elfring@web.de>,
Xuefeng Li <lixuefeng@loongson.cn>
Subject: [PATCH v4 1/4] selftests: kmod: Use variable NAME in kmod_test_0001()
Date: Tue, 21 Apr 2020 15:05:01 +0800 [thread overview]
Message-ID: <1587452704-1299-2-git-send-email-yangtiezhu@loongson.cn> (raw)
In-Reply-To: <1587452704-1299-1-git-send-email-yangtiezhu@loongson.cn>
Use the variable NAME instead of "\000" directly in kmod_test_0001().
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
v4:
- no changes
v3:
- no changes
v2:
- just add the Acked-by tag
tools/testing/selftests/kmod/kmod.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/kmod/kmod.sh b/tools/testing/selftests/kmod/kmod.sh
index 3702dbc..da60c3b 100755
--- a/tools/testing/selftests/kmod/kmod.sh
+++ b/tools/testing/selftests/kmod/kmod.sh
@@ -341,7 +341,7 @@ kmod_test_0001_driver()
kmod_defaults_driver
config_num_threads 1
- printf '\000' >"$DIR"/config_test_driver
+ printf $NAME >"$DIR"/config_test_driver
config_trigger ${FUNCNAME[0]}
config_expect_result ${FUNCNAME[0]} MODULE_NOT_FOUND
}
@@ -352,7 +352,7 @@ kmod_test_0001_fs()
kmod_defaults_fs
config_num_threads 1
- printf '\000' >"$DIR"/config_test_fs
+ printf $NAME >"$DIR"/config_test_fs
config_trigger ${FUNCNAME[0]}
config_expect_result ${FUNCNAME[0]} -EINVAL
}
--
2.1.0
next prev parent reply other threads:[~2020-04-21 7:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-21 7:05 [PATCH v4 0/4] Fix some issues about kmod Tiezhu Yang
2020-04-21 7:05 ` Tiezhu Yang [this message]
2020-04-21 7:05 ` [PATCH v4 2/4] kmod: Remove redundant "be an" in the comment Tiezhu Yang
2020-04-21 7:05 ` [PATCH v4 3/4] kmod: Return directly if module name is empty in request_module() Tiezhu Yang
2020-04-22 8:32 ` Luis Chamberlain
2020-04-21 7:05 ` [PATCH v4 4/4] test_kmod: Avoid potential double free in trigger_config_run_type() Tiezhu Yang
2020-05-11 12:59 ` [PATCH v4 0/4] Fix some issues about kmod Tiezhu Yang
2020-05-11 18:28 ` Luis Chamberlain
2020-06-10 2:33 ` Luis Chamberlain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1587452704-1299-2-git-send-email-yangtiezhu@loongson.cn \
--to=yangtiezhu@loongson.cn \
--cc=Markus.Elfring@web.de \
--cc=akpm@linux-foundation.org \
--cc=jeyu@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=lixuefeng@loongson.cn \
--cc=mcgrof@kernel.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).