Platform: ubuntu10.04
This problem was found during kernel 2.6.38 Compilation:
ARCH/x86/kernel/entry_32.s: assembler messages:
ARCH/x86/kernel/entry_32.s: 1422: Error:. Size expression for apf_page_fault does not evaluate to a constant
Make [2]: *** [ARCH/x86/kernel/entry_32.o] Error 1
Make [1]: *** [ARCH/x86/kernel] Error 2
Make: *** [ARCH/x86] Error 2
Solution:
Modify two items:
---- Entry_32.s.original 08:21:51. 000000000-0400
++ Entry_32.s 10:37:00. 000000000-0400
@-343,7 + 343,7 @@
# Int/exception return?
JNE work_pending
JMP restore_all
--End (ret_from_exception)
+ End (resume_userspace)
# Ifdef config_preempt
Entry (resume_kernel)
@-1413,7 + 1413,7 @@
Cfi_adjust_cfa_offset 4
JMP error_code
Cfi_endproc
--End (apf_page_fault)
+ End (async_page_fault)
# Endif
Note: The end with the -- sign indicates the row to be removed.
The end with the "+" sign is the row to be added.
Reference URL:
Http://bbs.chinaunix.net/thread-3602662-1-1.html
Https://lkml.org/lkml/2011/3/20/49