2.4.22 Patch for problem solved in 2.4.1
From: Dunn, Charles
Date: Mon Jun 07 2004 - 17:23:16 EST
Hello all and I apologize in advance for dragging up old skeletons.. I
am developing a kernel module and need to compile a version of the
2.4.22 kernel with SMP (NO Athlon support required) and KDB..
In trying to compile it I get the error that was much discussed on this
list in January and February of 2001.. The error text is included at the
end of this message for reference..
This is the infamous "current is undefined". There was a final patch
generated and distributed to this list as part of this posting:
http://www.uwsg.iu.edu/hypermail/linux/kernel/0102.1/0588.html
Regrettably, because this patch was for 2.4.1, and I am trying to build
2.4.22 (Mandrake 9.2) the patch does not apply cleanly.. I have been
unable to find a patch for any version other than 2.4.1 in the archives.
Anyone know of a version of this patch for 2.4.22 (or at least close)
kernels? I certainly do not want to try and duplicate the work done by
Tom Leete and company on this as I do not have the Linux kernel
experience, and need to get this going quickly...
There was a great deal of discussion about whether this was related to
Athlon support or not, and I thought the conclusion was that it is NOT
related, yet the final fix was entitled Athlon-SMP final... I do not
need Athlon support as I am running on only P3 and P4 processors. (No
SMP on P3, just used as initial testbed). So a simple solution that
means leaving Athlon support out is AOK for my situation.
Any further information about patching this in 2.4.22 is greatly
appreciated! Many thanks to Tom Leete and all the other folks who did
the original work to fix this!
Charlie Dunn
The compilation error:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-10mdk/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i586
-fno-optimize-sibling-calls -nostdinc -iwithprefix include
-DKBUILD_BASENAME=cpufreq -DEXPORT_SYMTAB -c cpufreq.c -o cpufreq.o
In file included from
/usr/src/linux-2.4.22-10mdk/include/linux/irq.h:69,
from
/usr/src/linux-2.4.22-10mdk/include/asm/hardirq.h:6,
from
/usr/src/linux-2.4.22-10mdk/include/linux/interrupt.h:52,
from cpufreq.c:21:
/usr/src/linux-2.4.22-10mdk/include/asm/hw_irq.h: In function
`x86_do_profile':
/usr/src/linux-2.4.22-10mdk/include/asm/hw_irq.h:206: error: `current'
undeclared (first use in this function)
/usr/src/linux-2.4.22-10mdk/include/asm/hw_irq.h:206: error: (Each
undeclared identifier is reported only once
/usr/src/linux-2.4.22-10mdk/include/asm/hw_irq.h:206: error: for each
function it appears in.)
make[2]: *** [cpufreq.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.22-10mdk/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-10mdk/kernel'
make: *** [_dir_kernel] Error 2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/