提交 8a25378e 编写于 作者: D David Howells 提交者: Al Viro

nubus: Don't use create_proc_entry()

Don't use create_proc_entry() in nubus_proc_subdir().  The files created aren't
given any way to use them, so for the moment use create_proc_read_entry() with
a NULL accessor and generate a compile-time warning.
Signed-off-by: NDavid Howells <dhowells@redhat.com>
上级 4554eb90
......@@ -73,8 +73,9 @@ static void nubus_proc_subdir(struct nubus_dev* dev,
struct proc_dir_entry* e;
sprintf(name, "%x", ent.type);
e = create_proc_entry(name, S_IFREG | S_IRUGO |
S_IWUSR, parent);
#warning Need to set some I/O handlers here
e = create_proc_read_entry(name, S_IFREG | S_IRUGO | S_IWUSR,
parent, NULL, NULL);
if (!e) return;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册