View Single Post
Old 02-23-03, 07:02 PM   #1
bisailb
Registered User
 
Join Date: Feb 2003
Location: Toronto, ON, CAN
Posts: 4
Default nforce/nvnet/nvnet.c and linux kernel 2.5.63

Problem:
Cannot compile nvnet module with linux kernel 2.5.63 source code.

Warnings:
`_MOD_INC_USE_COUNT' is deprecated
`__MOD_DEC_USE_COUNT' is deprecated

Errors:
nvnet.c: In function `nvnet_remove':
nvnet.c:1172: structure has no member named `driver_data'

Solution:
Please see attached patch. It may even work for earlier 2.5 kernel versions. I just chose the 2.5.63 kernel version. By the way, rename it from nvnet-patch-2.5.63.diff.txt to nvnet-patch-2.5.63.diff because this forum only accepts the .txt extension and some others.

Testing:
I did not test it yet but since it compiles just fine it should work. The function you want to test is nvnet_remove. If anyone has any success with this patch write a reply post to let everyone know it worked.
Attached Files
File Type: txt nvnet-patch-2.5.63.diff.txt (2.0 KB, 232 views)
bisailb is offline   Reply With Quote