* [PATCH 1/1] mm/cleancache.c __init init_cleancache(void) incorrect return value.
@ 2011-09-07 22:35 kordex
0 siblings, 0 replies; only message in thread
From: kordex @ 2011-09-07 22:35 UTC (permalink / raw)
To: LKML
Most likely solution bellow should be applied.
Br,
Mikko Kortelainen
Fail-Safe IT Solutions Oy
lain:/usr/src# diff -Naur a/mm/cleancache.c b/mm/cleancache.c
--- a/mm/cleancache.c 2011-08-29 23:56:30.000000000 +0300
+++ b/mm/cleancache.c 2011-09-08 01:24:15.000000000 +0300
@@ -234,11 +234,10 @@
static int __init init_cleancache(void)
{
+ int err = 0;
#ifdef CONFIG_SYSFS
- int err;
-
err = sysfs_create_group(mm_kobj, &cleancache_attr_group);
#endif /* CONFIG_SYSFS */
- return 0;
+ return err;
}
module_init(init_cleancache)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-07 22:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-07 22:35 [PATCH 1/1] mm/cleancache.c __init init_cleancache(void) incorrect return value kordex
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.