Re: Error compiling 2.1.113

Craig Schlenter (craig@is.co.za)
Mon, 3 Aug 1998 14:42:32 +0200 (SAST)


On Mon, 3 Aug 1998, Colin Coe wrote:

[snip]
> gcc -D__KERNEL__ -I/usr/src/linux-2.1.113/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce
> -m486 -DCPU=486 -c -o fault.o fault.c
> fault.c: In function `do_page_fault':
> fault.c:105: `local_bh_count' undeclared (first use this function)
[snip]

I added this to asm/hardirq.h (stolen from softirq.h)

extern unsigned int local_bh_count[NR_CPUS];

I can't say if this is exactly the right spot for it or if there is a
better way of doing this but it works for me :)

Cheers,

--Craig

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html