----- Original Message ----- From: "Gregory P. Smith" <[EMAIL PROTECTED]> To: "chandra" <[EMAIL PROTECTED]> Sent: Monday, May 27, 2002 11:16 AM Subject: Re: datafab.c compilation errot
> I did some work on that driver around 15 months ago to get it working but > am not the current maintainer. Try asking on the linux-usb mailing lists > (see www.linux-usb.org for details). > > take care, > Greg > > On Mon, May 27, 2002 at 02:06:23PM -0700, chandra wrote: > > Hi Greg, > > > > I got this error while compiling kernel sources 2.5.9. I am not sure if this is already fixed. Please let me know if there is a obvious mistake i made. I did follow the documentation. I found your email id in the source file. > > > > Will appreciate your feed back. > > > > Thanks > > > > Chandra > > > > make[4]: Entering directory `/usr/src/linux/drivers/usb/storage' > > gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-tri gra > > hs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferr ed- > > tack-boundary=2 -march=i686 -I../../scsi/ -DKBUILD_BASENAME=datafab -c -o dat > > fab.o datafab.c > > datafab.c: In function `datafab_read_data': > > datafab.c:259: structure has no member named `address' > > datafab.c:259: structure has no member named `address' > > datafab.c:268: structure has no member named `address' > > datafab.c:268: structure has no member named `address' > > datafab.c: In function `datafab_write_data': > > datafab.c:349: structure has no member named `address' > > datafab.c:349: structure has no member named `address' > > datafab.c:358: structure has no member named `address' > > datafab.c:358: structure has no member named `address' > > make[4]: *** [datafab.o] Error 1 > > make[4]: Leaving directory `/usr/src/linux/drivers/usb/storage' > > make[3]: *** [first_rule] Error 2 > > make[3]: Leaving directory `/usr/src/linux/drivers/usb/storage' > > make[2]: *** [_subdir_storage] Error 2 > > make[2]: Leaving directory `/usr/src/linux/drivers/usb' > > make[1]: *** [_subdir_usb] Error 2 > > make[1]: Leaving directory `/usr/src/linux/drivers' > > make: *** [_dir_drivers] Error 2 > > > > =========== > > > > I digged through scatterlist.h and found the member should be dma_adddress instead of address, but changing the variable gave the following errors. I feel these warnings are "core dump causing" when the calls are amde. My 2 cents worth. > > > > > > > > datafab.c: In function `datafab_read_data': > > datafab.c:259: warning: passing arg 1 of `__constant_memcpy' makes pointer from integer without a cast > > datafab.c:259: warning: passing arg 1 of `__memcpy' makes pointer from integer without a cast > > datafab.c:268: warning: passing arg 1 of `__constant_memcpy' makes pointer from integer without a cast > > datafab.c:268: warning: passing arg 1 of `__memcpy' makes pointer from integer without a cast > > > > datafab.c: In function `datafab_write_data': > > datafab.c:349: warning: passing arg 2 of `__constant_memcpy' makes pointer from integer without a cast > > datafab.c:349: warning: passing arg 2 of `__memcpy' makes pointer from integer without a cast > > datafab.c:358: warning: passing arg 2 of `__constant_memcpy' makes pointer from integer without a cast > > datafab.c:358: warning: passing arg 2 of `__memcpy' makes pointer from integer without a cast > > > > ------------- > > > > Linux calvin 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 unknown > > > > Gnu C 2.96 > > Gnu make 3.79.1 > > binutils 2.11.90.0.8 > > util-linux 2.11f > > mount 2.11g > > modutils 2.4.13 > > e2fsprogs 1.26 > > reiserfsprogs 3.x.0j > > PPP 2.4.1 > > isdn4k-utils 3.1pre1 > > Linux C Library 2.2.4 > > Dynamic linker (ldd) 2.2.4 > > Procps 2.0.7 > > Net-tools 1.60 > > Console-tools 0.3.3 > > Sh-utils 2.0.11 > > Modules Loaded sd_mod mousedev hid input autofs ipchains usb-storage scsi_mod cs4232 ad1848 uart401 sound soundcore usb-uhci usbcore eepro100 ext3 jbd > > > > > > -- > Some mistakes are too much fun to make only once. _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
