summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/sysctl/sysctl.sh
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2020-05-28 23:52:16 +0900
committerShuah Khan <skhan@linuxfoundation.org>2020-06-02 10:26:14 -0600
commit2f56f84511367ce5ffd4a1c88dcd770ef049ea96 (patch)
tree7d330c1ae60bdd1af58aee7bcedd3a38da89d07d /tools/testing/selftests/sysctl/sysctl.sh
parentd0676871fd52f575cc2bfec4faa2fcbc8af370e8 (diff)
lib: Make test_sysctl initialized as module
test_sysctl.c is expected to be used as a module, but since it does not use module_init(), it never be registered as a module and not appeared under /sys/module/. In the result, the selftests/sysctl/sysctl.sh always fails to find the test module and is skipped. This makes test_sysctl.c initialized as a module by module_init() and allow sysctl.sh to find the test module is loaded. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/sysctl/sysctl.sh')
0 files changed, 0 insertions, 0 deletions