Browse Source

zcache: Fix build error when sysfs is not defined

Signed-off-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Nitin Gupta 14 năm trước cách đây
mục cha
commit
d8c778fdf2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/staging/zcache/zcache-main.c

+ 1 - 1
drivers/staging/zcache/zcache-main.c

@@ -1936,9 +1936,9 @@ __setup("nofrontswap", no_frontswap);
 
 static int __init zcache_init(void)
 {
-#ifdef CONFIG_SYSFS
 	int ret = 0;
 
+#ifdef CONFIG_SYSFS
 	ret = sysfs_create_group(mm_kobj, &zcache_attr_group);
 	if (ret) {
 		pr_err("zcache: can't create sysfs\n");