.size expression for apf_page_fault does not evaluate to a constant

平臺:ubuntu10.04

編譯2.6.38內核的時候發現了這個情況:


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] 錯誤 1

make[1]: *** [arch/x86/kernel] 錯誤 2

make: *** [arch/x86] 錯誤 2

解決辦法:

修改兩處:

- --- entry_32.S.original        2011-03-18 08:21:51.000000000 -0400
+++ entry_32.S        2011-03-20 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

說明:其中帶--號的END爲要去除的行

            帶+號的END爲要加入的行

參考網址:

http://bbs.chinaunix.net/thread-3602662-1-1.html

https://lkml.org/lkml/2011/3/20/49

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章