]> www.infradead.org Git - users/hch/blktests.git/commitdiff
common: do not require loop support to be modular
authorChristoph Hellwig <hch@lst.de>
Wed, 1 Jun 2022 06:48:34 +0000 (08:48 +0200)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 2 Jun 2022 04:24:13 +0000 (13:24 +0900)
Use _have_driver instead of _have_modules in _have_loop as nothing requires
the loop driver to be modular.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
common/rc

index eb794a29fccd52b415724fd190129b13f8827405..ff3d679d95d65cbd664233771815e45d5a11ca93 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -128,7 +128,7 @@ _have_src_program() {
 }
 
 _have_loop() {
-       _have_modules loop && _have_program losetup
+       _have_driver loop && _have_program losetup
 }
 
 _have_blktrace() {