From: kbuild test robot <fengguang.wu@intel.com>
To: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: kbuild-all@01.org, Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: mm/page_owner.c:217:1-3: WARNING: PTR_ERR_OR_ZERO can be used
Date: Wed, 3 Jun 2015 11:19:37 +0800 [thread overview]
Message-ID: <201506031130.vEiITJ7b%fengguang.wu@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8cd9234c64c584432f6992fe944ca9e46ca8ea76
commit: 48c96a3685795e52903e60c7ee115e5e22e7d640 mm/page_owner: keep track of page owners
date: 6 months ago
coccinelle warnings: (new ones prefixed by >>)
>> mm/page_owner.c:217:1-3: WARNING: PTR_ERR_OR_ZERO can be used
vim +217 mm/page_owner.c
201
202 static const struct file_operations proc_page_owner_operations = {
203 .read = read_page_owner,
204 };
205
206 static int __init pageowner_init(void)
207 {
208 struct dentry *dentry;
209
210 if (!page_owner_inited) {
211 pr_info("page_owner is disabled\n");
212 return 0;
213 }
214
215 dentry = debugfs_create_file("page_owner", S_IRUSR, NULL,
216 NULL, &proc_page_owner_operations);
> 217 if (IS_ERR(dentry))
218 return PTR_ERR(dentry);
219
220 return 0;
221 }
222 module_init(pageowner_init)
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
reply other threads:[~2015-06-03 3:20 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=201506031130.vEiITJ7b%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=akpm@linux-foundation.org \
--cc=iamjoonsoo.kim@lge.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.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