Re: Problems compiling 2.1.57.. solutions anyone?

Bill Hawes (whawes@star.net)
Fri, 26 Sep 1997 09:45:52 -0400


This is a multi-part message in MIME format.
--------------A27413C682D7E19BEE70EB07
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Kaitlin R. Silver wrote:
>
> gcc -D__KERNEL__ -I/aurora/private/linux/include -Werror
> -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce
> -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o
> bad_inode.o bad_inode.c
> cc1: warnings being treated as errors
> bad_inode.c:23: warning: function declaration isn't a prototype
> make[2]: *** [bad_inode.o] Error 1
> make[2]: Leaving directory `/aurora/private/linux/fs'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/aurora/private/linux/fs'
> make: *** [linuxsubdirs] Error 2

I'm not sure why your compiler promotes the warning to an error, but the
attached patch should take care of the problem.

Regards,
Bill
--------------A27413C682D7E19BEE70EB07
Content-Type: text/plain; charset=us-ascii; name="bad_inode57-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="bad_inode57-patch"

--- fs/bad_inode.c.old Sat Sep 20 08:16:13 1997
+++ fs/bad_inode.c Fri Sep 26 08:06:23 1997
@@ -19,7 +19,7 @@
return ERR_PTR(-EIO);
}

-static int return_EIO()
+static int return_EIO(void)
{
return -EIO;
}

--------------A27413C682D7E19BEE70EB07--