]> 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)
commit1668c8b8f4b899d5aa041152b65e280ddfaac63f
treeba83971d5b8362610ac7f43bf41b70afdbad49d4
parent0d11c1171f30c65b1c5105ebc3f77a20aa3879fe
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: 7a80d9175511 ("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