Missing definition MOD_DEC_USE_COUNT in 9.3

From: Bernard Peek (bap_at_shrdlu.com)
Date: 08/30/05


Date: Tue, 30 Aug 2005 22:05:02 +0100

I've just attempted to compile a driver for the 64-bit release of
version 9.3 and I've hit a problem. There are two definitions missing
from the headers and as a result the code doesn't compile. This is code
that worked first time in 9.2 a few months back. That was the first time
I'd ever compiled a module from source. I thought it was too good to be
true.

It appears that the new kernel has a patch that removes those
definitions in module.h (MOD_DEC_USE_COUNT and MOD_INC_USE_COUNT).

The driver is for the ITE8212 IDE controller, which is quite a common
device (it's used in some current motherboards.) The code they supply
was designed for 2.6 kernels, obviously not the latest releases though.

Any suggestions?

.

-- 
Bernard Peek
London, UK. DBA, Manager, Trainer & Author.


Relevant Pages

  • Compiling the drivers for a ADSL Modem (IceData500)
    ... My modem model is IceData500 and the vendor says it is compatible with RH ... The unicorn driver is a standard Linux ... PPPoE, PPPoA or RFC2684 protocols, the kernel may need to be patched. ... To compile the drivers, ...
    (Fedora)
  • Re: Back to ubuntu
    ... but not in regular ubuntu 6.06 or any other version of ubuntu? ... so i attempted to compile the drivers on ubuntu 7.04, ... that under kubuntu 6.06 you were using a compatible kernel, ... unless you figure out how to get the driver to compile. ...
    (Ubuntu)
  • Re: kernel? 2.4.x vs 2.6.x
    ... Sorry about the contractions. ... > compile a new kernel and then compile the driverfrom ... this fails w.o custom kernel and I couldn't get syskonnects ... > driver to compile at all which googling suggested) This was all a good ...
    (Debian-User)
  • Re: reiserfs
    ... The linux kernel is surprisingly easy ... >> to configure and compile, which is amazing considering its complexity. ... The mistake I made the first time was trying to ... all unstable modules, which in my case included my maestro3 soundcard, ...
    (Debian-User)
  • Re: Missing definition MOD_DEC_USE_COUNT in 9.3
    ... > from the headers and as a result the code doesn't compile. ... > that worked first time in 9.2 a few months back. ... > The driver is for the ITE8212 IDE controller, ... You need a 2.6.9 kernel or older. ...
    (alt.os.linux.suse)