PREEMPT_RT Kernel in linux-sunxi for cubieboard, compilation Errors(mm/page_alloc.c) -
PREEMPT_RT Kernel in linux-sunxi for cubieboard, compilation Errors(mm/page_alloc.c) -
i getting next error while compiling preempt_rt patched kernel linux-sunxi. ideas debug these errors?
the kernel source : https://github.com/linux-sunxi/linux-sunxi.git --branch sunxi-3.4
patch applied: https://www.kernel.org/pub/linux/kernel/projects/rt/3.4/older/patch-3.4.61-rt77.patch.xz
mm/page_alloc.c: in function ‘__free_pages_ok’: mm/page_alloc.c:772:2: error: implicit declaration of function ‘local_lock_irqsave’ [-werror=implicit-function-declaration] local_lock_irqsave(pa_lock, flags); mm/page_alloc.c:772:21: error: ‘pa_lock’ undeclared (first utilize in function) local_lock_irqsave(pa_lock, flags); mm/page_alloc.c:778:2: error: implicit declaration of function ‘local_unlock_irqrestore’ [-werror=implicit-function-declaration] local_unlock_irqrestore(pa_lock, flags); mm/page_alloc.c: in function ‘drain_pages’: mm/page_alloc.c:1234:3: error: implicit declaration of function ‘local_lock_irqsave_on’ [-werror=implicit-function-declaration] cpu_lock_irqsave(cpu, flags); mm/page_alloc.c:236:24: error: ‘pa_lock’ undeclared (first utilize in function) local_lock_irqsave_on(pa_lock, flags, cpu) mm/page_alloc.c:1234:3: note: in expansion of macro ‘cpu_lock_irqsave’ cpu_lock_irqsave(cpu, flags); mm/page_alloc.c:1243:3: error: implicit declaration of function ‘local_unlock_irqrestore_on’ [-werror=implicit-function-declaration] cpu_unlock_irqrestore(cpu, flags); mm/page_alloc.c: in function ‘free_hot_cold_page’: mm/page_alloc.c:1359:21: error: ‘pa_lock’ undeclared (first utilize in function) local_lock_irqsave(pa_lock, flags); mm/page_alloc.c: in function ‘buffered_rmqueue’: mm/page_alloc.c:1510:22: error: ‘pa_lock’ undeclared (first utilize in function) local_lock_irqsave(pa_lock, flags); mm/page_alloc.c:1542:3: error: implicit declaration of function ‘local_spin_lock_irqsave’ [-werror=implicit-function-declaration] local_spin_lock_irqsave(pa_lock, &zone->lock, flags); mm/page_alloc.c: in function ‘__zone_pcp_update’: mm/page_alloc.c:236:24: error: ‘pa_lock’ undeclared (first utilize in function) local_lock_irqsave_on(pa_lock, flags, cpu) mm/page_alloc.c:3993:3: note: in expansion of macro ‘cpu_lock_irqsave’ cpu_lock_irqsave(cpu, flags); cc kernel/exit.o mm/page_alloc.c: in function ‘page_alloc_init’: mm/page_alloc.c:5028:2: error: implicit declaration of function ‘local_irq_lock_init’ [-werror=implicit-function-declaration] local_irq_lock_init(pa_lock); mm/page_alloc.c:5028:22: error: ‘pa_lock’ undeclared (first utilize in function) local_irq_lock_init(pa_lock); mm/page_alloc.c: @ top level: mm/page_alloc.c:232:8: warning: ‘define_local_irq_lock’ declared ‘static’ never defined [-wunused-function] static define_local_irq_lock(pa_lock); cc1: warnings beingness treated errors make[1]: *** [mm/page_alloc.o] error 1 make: *** [mm] error 2 make: *** waiting unfinished jobs....
solution simple, include
#include < linux/locallock.h>
in locallock.c in linux-sunxi/mm/ , compilation end successfully.
linux-kernel kernel real-time archlinux-arm preempt-rt
Comments
Post a Comment