Skip to content

Commit edbd6c6

Browse files
committed
Merge tag 'modules-5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux
Pull module fix from Luis Chamberlain: "Fixes module decompression when CONFIG_SYSFS=n The only fix trickled down for v5.17-rc cycle so far is the fix for module decompression when CONFIG_SYSFS=n. This was reported through 0-day" * tag 'modules-5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux: module: fix building with sysfs disabled
2 parents 80d47f5 + a8e8f85 commit edbd6c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/module_decompress.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ void module_decompress_cleanup(struct load_info *info)
250250
info->max_pages = info->used_pages = 0;
251251
}
252252

253+
#ifdef CONFIG_SYSFS
253254
static ssize_t compression_show(struct kobject *kobj,
254255
struct kobj_attribute *attr, char *buf)
255256
{
@@ -269,3 +270,4 @@ static int __init module_decompress_sysfs_init(void)
269270
return 0;
270271
}
271272
late_initcall(module_decompress_sysfs_init);
273+
#endif

0 commit comments

Comments
 (0)