]> www.infradead.org Git - users/hch/blktests.git/commit
common: Use sysfs instead of modinfo for _have_module_param()
authorLogan Gunthorpe <logang@deltatee.com>
Wed, 17 Jul 2019 17:12:58 +0000 (11:12 -0600)
committerOmar Sandoval <osandov@osandov.com>
Mon, 29 Jul 2019 17:13:14 +0000 (10:13 -0700)
commitb059ba54b0436fcf74e91f2d7db8c1cf2f53fb6a
tree208bcb52abc1cb9c00462f17e00f17cef18b0d7d
parenta987b10bc179687e533d112ad125417b7f7c5a79
common: Use sysfs instead of modinfo for _have_module_param()

Using modinfo fails if the given module is built-in.

Instead, if the module is already in the kernel, check for the
parameter in sysfs.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
common/rc