module: fix building with sysfs disabled
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 15 Feb 2022 21:11:42 +0000 (13:11 -0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Wed, 16 Feb 2022 20:51:32 +0000 (12:51 -0800)
commita8e8f851e8299703a005cf23dfb9ec854a2611e5
treeba83971d5b8362610ac7f43bf41b70afdbad49d4
parent3593030761630e09200072a4bd06468892c27be3
module: fix building with sysfs disabled

Sysfs support might be disabled so we need to guard the code that
instantiates "compression" attribute with an #ifdef.

Fixes: b1ae6dc41eaa ("module: add in-kernel support for decompressing")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module_decompress.c