From: kordex@gmail.com
To: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/1] mm/cleancache.c __init init_cleancache(void) incorrect return value.
Date: Thu, 08 Sep 2011 01:35:26 +0300 [thread overview]
Message-ID: <4E67F1AE.90204@gmail.com> (raw)
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)
reply other threads:[~2011-09-07 22:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E67F1AE.90204@gmail.com \
--to=kordex@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox