]> git.hungrycats.org Git - linux/commitdiff
[PATCH] devfs: fix compilation
authorChristoph Hellwig <hch@lst.de>
Fri, 18 Apr 2003 02:19:14 +0000 (19:19 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 18 Apr 2003 02:19:14 +0000 (19:19 -0700)
As several people found out while I was asleep I sent you
a bogus patch version and devfs didn't compile in your
tree since then.  Fix it.

fs/devfs/base.c

index 3b0ba59c8921785e69add6d5e5dce1f710d95b29..a2097d609e1c398dda5c560c7d0dd05c1fb7d534 100644 (file)
@@ -1377,7 +1377,6 @@ static int wait_for_devfsd_finished (struct fs_info *fs_info)
  *     @uid: The user ID.
  *     @gid: The group ID.
  *     @fs_info: The filesystem info.
- *     @atomic: If TRUE, an atomic allocation is required.
  *
  *     Returns %TRUE if an event was queued and devfsd woken up, else %FALSE.
  */
@@ -1423,7 +1422,7 @@ static int devfsd_notify_de (struct devfs_entry *de,
 static void devfsd_notify (struct devfs_entry *de,unsigned short type)
 {
        devfsd_notify_de(de, type, de->mode, current->euid,
-                        current->egid, &fs_info, 0);
+                        current->egid, &fs_info);
 } 
 
 
@@ -1456,8 +1455,8 @@ devfs_handle_t devfs_register (devfs_handle_t dir, const char *name,
     dev_t devnum = 0, dev = MKDEV(major, minor);
     struct devfs_entry *de;
 
-    if (flags)
-       printk(KERN_ERR "%s called with flags != 0, please fix!\n");
+    /* we don't accept any flags anymore.  prototype will change soon. */
+    WARN_ON(flags);
 
     if (name == NULL)
     {