nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   General Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=27)
-   -   FC6 forcedeth.c 0.62 errors and warnings during compile (http://www.nvnews.net/vbulletin/showthread.php?t=96453)

bobism 08-12-07 09:06 AM

FC6 forcedeth.c 0.62 errors and warnings during compile
 
I have a problem with my M2N-MX mob using the FC6 forcedeth.ko, versions 0.59 and 0.60 (latest kernel). The ethernet link will go "corrupt" and wont recover, ifdown/ifup wont help. If I reload the driver, it recovers e.g. rmmod/modprobe. So I'm trying to compile 0.62 source as supplied in NVIDIA 1.23;

http://www.nvidia.com/object/linux_nforce_1.23.html

However, when I compile the module using the following Makefile;

> obj-m := forcedeth.o
>
> KDIR := /lib/modules/$(shell uname -r)/build
> PWD := $(shell pwd)

> default:
> $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
> $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

I get the warnings and errors shown at the end of my post. What am I doing wrong? Please help!

-- log of make

make -C /lib/modules/2.6.22.1-32.fc6/build SUBDIRS=/root/forcedeth-build clean
make[1]: Entering directory `/usr/src/kernels/2.6.22.1-32.fc6-i686'
CLEAN /root/forcedeth-build/.tmp_versions
make[1]: Leaving directory `/usr/src/kernels/2.6.22.1-32.fc6-i686'
make -C /lib/modules/2.6.22.1-32.fc6/build SUBDIRS=/root/forcedeth-build modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.1-32.fc6-i686'
CC [M] /root/forcedeth-build/forcedeth.o
/root/forcedeth-build/forcedeth.c: In function ‘nv_start_xmit’:
/root/forcedeth-build/forcedeth.c:2367: error: ‘CHECKSUM_HW’ undeclared (first use in this function)
/root/forcedeth-build/forcedeth.c:2367: error: (Each undeclared identifier is reported only once
/root/forcedeth-build/forcedeth.c:2367: error: for each function it appears in.)
/root/forcedeth-build/forcedeth.c: In function ‘nv_start_xmit_optimized’:
/root/forcedeth-build/forcedeth.c:2475: error: ‘CHECKSUM_HW’ undeclared (first use in this function)
/root/forcedeth-build/forcedeth.c: In function ‘nv_request_irq’:
/root/forcedeth-build/forcedeth.c:3823: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3823: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3830: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3830: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3837: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3837: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3854: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3854: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3856: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3856: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3858: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3858: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3875: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3875: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3877: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3877: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3878: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3878: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3980: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3980: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3982: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3982: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c:3983: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/root/forcedeth-build/forcedeth.c:3983: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/forcedeth-build/forcedeth.c: In function ‘nv_resume’:
/root/forcedeth-build/forcedeth.c:6422: warning: ignoring return value of ‘pci_enable_device’, declared with attribute warn_unused_result
/root/forcedeth-build/forcedeth.c: In function ‘nv_reboot_handler’:
/root/forcedeth-build/forcedeth.c:6490: warning: ‘pci_find_device’ is deprecated (declared at include/linux/pci.h:477)
/root/forcedeth-build/forcedeth.c: In function ‘init_nic’:
/root/forcedeth-build/forcedeth.c:6516: warning: implicit declaration of function ‘pci_module_init’
make[2]: *** [/root/forcedeth-build/forcedeth.o] Error 1
make[1]: *** [_module_/root/forcedeth-build] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.1-32.fc6-i686'
make: *** [default] Error 2


All times are GMT -5. The time now is 03:03 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.