Commit 835f446a authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] devfs: warn on block modes in devfs_register

parent a648f51e
...@@ -1456,6 +1456,7 @@ devfs_handle_t devfs_register (devfs_handle_t dir, const char *name, ...@@ -1456,6 +1456,7 @@ devfs_handle_t devfs_register (devfs_handle_t dir, const char *name,
/* we don't accept any flags anymore. prototype will change soon. */ /* we don't accept any flags anymore. prototype will change soon. */
WARN_ON(flags); WARN_ON(flags);
WARN_ON(dir); WARN_ON(dir);
WARN_ON(!S_ISCHR(mode));
if (name == NULL) if (name == NULL)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment