OSDN Git Service

scftorture: Warn on individual scf_torture_init() error conditions
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 5 Aug 2021 23:01:51 +0000 (16:01 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 16 Sep 2021 17:27:48 +0000 (10:27 -0700)
commitf2bdf7dc0da234d78636994367e6ea4af055c689
treedda5d6b30cc911a818627d9493f4d956e904579e
parentc3d0258d5af2a50529e8928fe458344e38653d25
scftorture: Warn on individual scf_torture_init() error conditions

When running scftorture as a module, any scf_torture_init() issues will be
reflected in the error code from modprobe or insmod, as the case may be.
However, these error codes are not available when running scftorture
built-in, for example, when using the kvm.sh script.  This commit
therefore adds WARN_ON_ONCE() to allow distinguishing scf_torture_init()
errors when running scftorture built-in.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/scftorture.c