lkml.org 
[lkml]   [1998]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.1.113 doesn't compile
Ralf Wierzbicki wrote:

> 2.1.113 fails to compile, it chokes at:
> make[2]: Entering directory `/usr/src/linux/arch/i386/mm'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -pipe -fno-strength-reduce -mpentium -malign-loops=2
> -malign-jumps=2 -malign-functions=2 -DCPU=586 -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 `/usr/src/linux/arch/i386/mm'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/linux/arch/i386/mm'
> make: *** [linuxsubdirs] Error 2

Hi,

you have to insert the following lines into /usr/src/linux/include/asm/softirq.h:

...
extern unsigned int local_bh_count[NR_CPUS];
+ extern int bh_mask_count[32];
+ extern unsigned long bh_active;
+ extern unsigned long bh_mask;
+ extern void (*bh_base[32])(void);

#define get_active_bhs() (bh_mask & bh_active)
...

(marked with a '+') and into fault.c

...
#include <asm/hardirq.h>
+ #include <asm/softirq.h>

extern void die(const char *,struct pt_regs *,long);
...

Bernd


-
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

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.050 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site