ngpt-2.0.0 kernel patch - Linux stock 2.4.18 kernel + patch-kngpt -2.4.18-2.0 issues

"Howell, David P" <[email protected]>
Newsgroups gmane.linux.ngpt.devel
Message-ID <[email protected]>
For those folks who are using the 2.4.18 kernel + patch-kngpt-2.4.18-2.0, I
noted a few problems
when I built the kernel. Two constructs from the 2.4.19 kernels were missing
in kernel/futex.c:
  - BUG_ON(), referenced in the kernel/futex.c module, causes a 'make
bzImage' failure at link.
    It's a macro that is missing. I got a copy of the macro from 2.4.19's
include/linux/kernel.h and 
    added it to the 2.4.18 include/linux/kernel.h.
  - unlikely(), referenced in the kernel/futex.c module, causes a 'make
bzImage' failure at link. 
    Adding a '#include <linux/compiler.h>' to the list of includes in
kernel/futex.c fixed this.
With these two changes the kernel links and works with the ngpt-2.0.0
runtime as expected.

Hope that this helps anyone who has run into this.

David Howell
Intel Corporation
Telco Server Development
Server Products Division
Voice: (803)461-6112  Fax: (803)461-6292

Intel Corporation
Columbia Design Center, CBA-2
250 Berryhill Road, Suite 100
Columbia, SC 29210

[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.