Skip to contentSkip to conversation

Someone can explain me this error?

DISCUSSION Alessio Igor Bogani 2 participants 2 messages Jun 7, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to compile 2.6.22 kernel with patch-2.6.21.3-rt9.

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’

#1 lore raw
Quoted 3 lines · Alessio Igor Bogani

Hi,

I'm trying to compile 2.6.22 kernel with patch-2.6.21.3-rt9.

I have no idea, why you insist to run the 2.6.21 patch on 2.6.22-rc.

Quoted 4 lines

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’" ?

There is no way to tell, what you did to make the patches apply on 2.6.22, what it breaks any why. And I really do not care.

We are going to move to 2.6.22 once we have sorted out some urgent problems in 2.6.21-rt.

tglx