提交 edbd6c62 编写于 作者: L Linus Torvalds

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
...@@ -250,6 +250,7 @@ void module_decompress_cleanup(struct load_info *info) ...@@ -250,6 +250,7 @@ void module_decompress_cleanup(struct load_info *info)
info->max_pages = info->used_pages = 0; info->max_pages = info->used_pages = 0;
} }
#ifdef CONFIG_SYSFS
static ssize_t compression_show(struct kobject *kobj, static ssize_t compression_show(struct kobject *kobj,
struct kobj_attribute *attr, char *buf) struct kobj_attribute *attr, char *buf)
{ {
...@@ -269,3 +270,4 @@ static int __init module_decompress_sysfs_init(void) ...@@ -269,3 +270,4 @@ static int __init module_decompress_sysfs_init(void)
return 0; return 0;
} }
late_initcall(module_decompress_sysfs_init); late_initcall(module_decompress_sysfs_init);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册