2002-02-07 15:16:28

by Benjamin Pharr

[permalink] [raw]
Subject: inode.c Compile Error

I got the following error when trying to compile 2.5.4-pre2:

gcc -D__KERNEL__ -I/usr/src/linux-2.5.4-pre2/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686 -c -o inode.o inode.c
inode.c: In function `usb_get_sb':
inode.c:528: `usb_fill_super' undeclared (first use in this function)
inode.c:528: (Each undeclared identifier is reported only once
inode.c:528: for each function it appears in.)
inode.c: At top level:
inode.c:368: warning: `usbfs_fill_super' defined but not used
make[3]: *** [inode.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.5.4-pre2/drivers/usb'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.5.4-pre2/drivers/usb'
make[1]: *** [_subdir_usb] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.4-pre2/drivers'
make: *** [_dir_drivers] Error 2
benix:/usr/src/linux-2.5.4-pre2#

Ben Pharr
[email protected]


2002-02-07 16:08:35

by Greg KH

[permalink] [raw]
Subject: Re: inode.c Compile Error

On Thu, Feb 07, 2002 at 09:15:18AM -0600, Benjamin Pharr wrote:
> I got the following error when trying to compile 2.5.4-pre2:

This patch fixes this. I'll send it upstream later today.

thanks,

greg k-h


diff -Nru a/drivers/usb/inode.c b/drivers/usb/inode.c
--- a/drivers/usb/inode.c Thu Feb 7 08:08:34 2002
+++ b/drivers/usb/inode.c Thu Feb 7 08:08:34 2002
@@ -525,7 +525,7 @@
static struct super_block *usb_get_sb(struct file_system_type *fs_type,
int flags, char *dev_name, void *data)
{
- return get_sb_single(fs_type, flags, data, usb_fill_super);
+ return get_sb_single(fs_type, flags, data, usbfs_fill_super);
}

static struct file_system_type usbdevice_fs_type = {