linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* mm/page_owner.c:217:1-3: WARNING: PTR_ERR_OR_ZERO can be used
@ 2015-06-03  3:19 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2015-06-03  3:19 UTC (permalink / raw)
  To: Joonsoo Kim; +Cc: kbuild-all, Andrew Morton, Linux Memory Management List

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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-03  3:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-03  3:19 mm/page_owner.c:217:1-3: WARNING: PTR_ERR_OR_ZERO can be used kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox