Someone can explain me this error?

Alessio Igor Bogani abogani at texware.it
Thu Jun 7 07:33:57 UTC 2007


Hi,

I'm trying to compile Gutsy git tree kernel with Ingo Molnar's Realtime
Preempt (-rt) patch.

I have this error but i don't understand what type of error it is.
Someone can explain me this error? Or suggest me how can resolve it?
What mean "error: expected declaration specifiers or ‘...’ before
‘mmu_gathers’" ?

Thanks in advance.

Ciao,
Alessio


In file included from include/asm/tlb.h:18,
                 from arch/i386/mm/init.c:43:
include/asm-generic/tlb.h:49: error: expected declaration specifiers or
‘...’ before ‘mmu_gathers’
include/asm-generic/tlb.h:49: warning: data definition has no type or
storage class
include/asm-generic/tlb.h:49: warning: type defaults to ‘int’ in
declaration of ‘DECLARE_PER_CPU_LOCKED’
include/asm-generic/tlb.h: In function ‘tlb_gather_mmu’:
include/asm-generic/tlb.h:58: warning: implicit declaration of function
‘__get_cpu_lock’
include/asm-generic/tlb.h:58: error: ‘mmu_gathers’ undeclared (first use
in this function)
include/asm-generic/tlb.h:58: error: (Each undeclared identifier is
reported only once
include/asm-generic/tlb.h:58: error: for each function it appears in.)
include/asm-generic/tlb.h:58: error: invalid lvalue in unary ‘&’
include/asm-generic/tlb.h:58: warning: type defaults to ‘int’ in
declaration of ‘type name’
include/asm-generic/tlb.h:58: error: invalid lvalue in unary ‘&’
include/asm-generic/tlb.h:58: error: invalid lvalue in unary ‘&’
include/asm-generic/tlb.h:58: warning: type defaults to ‘int’ in
declaration of ‘type name’
include/asm-generic/tlb.h:58: error: invalid lvalue in unary ‘&’
include/asm-generic/tlb.h:58: warning: implicit declaration of function
‘__get_cpu_var_locked’
include/asm-generic/tlb.h:58: error: invalid lvalue in unary ‘&’
include/asm-generic/tlb.h: In function ‘tlb_finish_mmu’:
include/asm-generic/tlb.h:96: error: ‘mmu_gathers’ undeclared (first use
in this function)
include/asm-generic/tlb.h:96: error: invalid lvalue in unary ‘&’
include/asm-generic/tlb.h:96: warning: type defaults to ‘int’ in
declaration of ‘type name’
include/asm-generic/tlb.h:96: error: invalid lvalue in unary ‘&’
include/asm-generic/tlb.h:96: error: invalid lvalue in unary ‘&’
include/asm-generic/tlb.h:96: warning: type defaults to ‘int’ in
declaration of ‘type name’
include/asm-generic/tlb.h:96: error: invalid lvalue in unary ‘&’
arch/i386/mm/init.c: At top level:
arch/i386/mm/init.c:50: error: expected declaration specifiers or ‘...’
before ‘mmu_gathers’
arch/i386/mm/init.c:50: warning: data definition has no type or storage
class
arch/i386/mm/init.c:50: warning: type defaults to ‘int’ in declaration
of ‘DEFINE_PER_CPU_LOCKED’






More information about the kernel-team mailing list