overflow: Replace fake root_device with kunit_device
authordavidgow@google.com <davidgow@google.com>
Fri, 15 Dec 2023 07:39:10 +0000 (15:39 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 18 Dec 2023 20:28:08 +0000 (13:28 -0700)
commit837018388e18bd740fb4f4371858f3e3a477fab8
tree066641181260f5a65caf24cccea08cb133214672
parent46ee8f688e43d1b3a81a3494e59f9861d4de73bf
overflow: Replace fake root_device with kunit_device

Using struct root_device to create fake devices for tests is something
of a hack. The new struct kunit_device is meant for this purpose, so use
it instead.

Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/overflow_kunit.c