bisailb
02-23-03, 09:02 PM
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.
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.