warning: the frame size of 1040 bytes is larger than 1024 bytes

問題描述:

       在編譯內核模塊驅動時,如果出現如下警告信息:

warning: the frame size of 1040 bytes is larger than 1024 bytes。主要是因爲內核中設置了堆棧報警大小,其默認爲1024bytes。我們主要將其修改爲4096既可以消除告警信息。

如果解決:

(1)make menuconfig

(2)kernel hacking

(3)修改warn for stack frames larger than 的數值,將其修改爲4096(最好不要大過這個數值)

(4)重新編譯內核模塊則不會出現如上的告警信息。

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