Re: More 2.1.81 compile errors(with fix)

Linus Torvalds (torvalds@transmeta.com)
24 Jan 1998 06:26:38 GMT


In article <Pine.LNX.3.96.980123214101.2888A-100000@ppp8.csudh.edu>,
Trevor Johnson <trevor@jpj.net> wrote:
>
>After applying your patch, I had further errors when compiling without
>__SMP__:
>
>gcc -D__KERNEL__ -I/usr/sys/linux/include -Wall -Wstrict-prototypes -O2
>-fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
>-malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o irq.o irq.c
>irq.c: In function `do_ioapic_IRQ':

You can just put a #ifdef __SMP__ around the whole contents of the
"do_ioapic_IRQ()": the ioapic code is not enabled for UP anyway.. (and
right now it isn't enabled even under SMP, but a SMP kernel will at
least compile ;)

Linus