• Tiezhu Yang's avatar
    selftests: kmod: use variable NAME in kmod_test_0001() · aaa3e7fb
    Tiezhu Yang authored
    Patch series "kmod/umh: a few fixes".
    
    Tiezhu Yang had sent out a patch set with a slew of kmod selftest fixes,
    and one patch which modified kmod to return 254 when a module was not
    found.  This opened up pandora's box about why that was being used for and
    low and behold its because when UMH_WAIT_PROC is used we call a
    kernel_wait4() call but have never unwrapped the error code.  The commit
    log for that fix details the rationale for the approach taken.  I'd
    appreciate some review on that, in particular nfs folks as it seems a case
    was never really hit before.
    
    This patch (of 5):
    
    Use the variable NAME instead of "\000" directly in kmod_test_0001().
    Signed-off-by: default avatarTiezhu Yang <yangtiezhu@loongson.cn>
    Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Acked-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Cc: Philipp Reisner <philipp.reisner@linbit.com>
    Cc: Lars Ellenberg <lars.ellenberg@linbit.com>
    Cc: Jens Axboe <axboe@kernel.dk>
    Cc: J. Bruce Fields <bfields@fieldses.org>
    Cc: Chuck Lever <chuck.lever@oracle.com>
    Cc: Roopa Prabhu <roopa@cumulusnetworks.com>
    Cc: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
    Cc: David S. Miller <davem@davemloft.net>
    Cc: Jakub Kicinski <kuba@kernel.org>
    Cc: David Howells <dhowells@redhat.com>
    Cc: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
    Cc: James Morris <jmorris@namei.org>
    Cc: "Serge E. Hallyn" <serge@hallyn.com>
    Cc: Christian Brauner <christian.brauner@ubuntu.com>
    Cc: Sergei Trofimovich <slyfox@gentoo.org>
    Cc: Alexei Starovoitov <ast@kernel.org>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Josh Triplett <josh@joshtriplett.org>
    Cc: Sergey Kvachonok <ravenexp@gmail.com>
    Cc: Tony Vroon <chainsaw@gentoo.org>
    Cc: Shuah Khan <shuah@kernel.org>
    Cc: Christoph Hellwig <hch@infradead.org>
    Link: http://lkml.kernel.org/r/20200610154923.27510-1-mcgrof@kernel.org
    Link: http://lkml.kernel.org/r/20200610154923.27510-2-mcgrof@kernel.orgSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    aaa3e7fb
kmod.sh 15.5 KB