Re: Werror compiler option problems with modules and devfs

From: Neil Brown (neilb@cse.unsw.edu.au)
Date: Wed Jul 05 2000 - 22:52:59 EST


On Wednesday July 5, JJProg@cyberbury.net wrote:
>
> I understand that using Werror probably helps enforce cleaner code, but
> it definately does not work with modules. Also, I tried to figure out
> how to fix the warning with devfs, but I was unable to. Other than that,
> the kernel compiled without any warnings.
>
> Jeff Fielding
> JJProg@cyberbury.net

--- linux/fs/devfs/base.c Thu Jul 6 10:43:07 2000
+++ linux-2.4.0-test3-pre3/fs/devfs/base.c Thu Jul 6 10:45:29 2000
@@ -2295,7 +2295,7 @@
 #endif
 } /* End Function devfs_read_inode */
 
-static void devfs_write_inode (struct inode *inode)
+static void devfs_write_inode (struct inode *inode, int wait)
 {
     int index;
     struct devfs_entry *de;

worked for me (already sent to Linus)

NeilBrown

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:18 EST