Re: 2.1.113 fault.c:105: `local_bh_count' undeclared

Ioannis Mavroukakis (ipm@soc.unl.ac.uk)
Mon, 3 Aug 1998 17:09:34 +0100 (BST)


> ] gcc -D__KERNEL__ -I/u/src/linux-2.1.113/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o fault.o fault.c
> ] fault.c: In function `do_page_fault':
> ] fault.c:105: `local_bh_count' undeclared (first use this function)
> ] fault.c:105: (Each undeclared identifier is reported only once
> ] fault.c:105: for each function it appears in.)
> ] make[2]: *** [fault.o] Error 1
> ] make[2]: Leaving directory `/u/src/linux-2.1.113/arch/i386/mm'
> ] make[1]: *** [first_rule] Error 2
> ] make[1]: Leaving directory `/u/src/linux-2.1.113/arch/i386/mm'
> ] make: *** [linuxsubdirs] Error 2
>
add #include <linux/interrupt.h> to the list of includes and it will
compile.
Cheers,
Yiannis.

-
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