]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb1fce2779f5b82c6794dcd4f8e7f141a7e8222b
treeba83971d5b8362610ac7f43bf41b70afdbad49d4
parenta1fc6dacf97894ad2878e76f9a2ce19a0b958b8e
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: 30e1e1afbef0 ("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