diff options
author | Nitin Gupta <ngupta@vflare.org> | 2011-08-04 18:05:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-08 15:05:35 -0400 |
commit | d8c778fdf2bcd42e495ca1ca67bca729639352b7 (patch) | |
tree | e5563bca5bc26d02245830bb2f3517f0dad9f687 /drivers | |
parent | 3ca15c4486beb113700cda44e32109cf0d97528b (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/zcache/zcache-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/zcache/zcache-main.c b/drivers/staging/zcache/zcache-main.c index 2c41c4465e14..855a5bb56a47 100644 --- a/drivers/staging/zcache/zcache-main.c +++ b/drivers/staging/zcache/zcache-main.c | |||
@@ -1936,9 +1936,9 @@ __setup("nofrontswap", no_frontswap); | |||
1936 | 1936 | ||
1937 | static int __init zcache_init(void) | 1937 | static int __init zcache_init(void) |
1938 | { | 1938 | { |
1939 | #ifdef CONFIG_SYSFS | ||
1940 | int ret = 0; | 1939 | int ret = 0; |
1941 | 1940 | ||
1941 | #ifdef CONFIG_SYSFS | ||
1942 | ret = sysfs_create_group(mm_kobj, &zcache_attr_group); | 1942 | ret = sysfs_create_group(mm_kobj, &zcache_attr_group); |
1943 | if (ret) { | 1943 | if (ret) { |
1944 | pr_err("zcache: can't create sysfs\n"); | 1944 | pr_err("zcache: can't create sysfs\n"); |