2.4.36-stable kernel tree
Revision | e967f39f00ab7861256b61d6194d2d167d7b65ef (tree) |
---|---|
Zeit | 2006-11-20 02:02:10 |
Autor | Willy Tarreau <w@1wt....> |
Commiter | Willy Tarreau |
[GCC4] fix build error in arch/alpha/kernel/irq.c
This patch fixes this error with gcc 4 on alpha :
gcc-4.1 -DKERNEL -I/data/git/public/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-sprintf -fomit-frame-pointer -Wno-pointer-sign -pipe -mno-fp-regs -ffixed-8 -mcpu=ev6 -Wa,-mev6 -nostdinc -iwithprefix include -DKBUILD_BASENAME=irq -c -o irq.o irq.c
irq.c: In function 'handle_irq':
irq.c:619: error: invalid lvalue in increment
@@ -31,7 +31,7 @@ typedef struct { | ||
31 | 31 | #ifndef CONFIG_SMP |
32 | 32 | |
33 | 33 | extern unsigned long __irq_attempt[]; |
34 | -#define irq_attempt(cpu, irq) ((void)(cpu), __irq_attempt[irq]) | |
34 | +#define irq_attempt(cpu, irq) (__irq_attempt[irq]) | |
35 | 35 | |
36 | 36 | #define hardirq_trylock(cpu) (local_irq_count(cpu) == 0) |
37 | 37 | #define hardirq_endlock(cpu) ((void) 0) |