我在編譯 driver 時, 發生了幾個錯誤
error: 'SA_INTERRUPT' undeclared (first use in this function)
error: 'SA_SHIRQ' undeclared (first use in this function)
我有查過一些資料, 說
這個缺乏的宣告, 好像是在 linux/sched.h 下,
而我也看到我編譯的檔案裡面確實有這兩行
#include <linux/sched.h>
#include <linux/interrupt.h>
然後我到 /usr/src/linux-headers-2.6.31-21-generic/include/linux 去找
發現 SA_INTERRUPT 似乎沒有被定義在這個目錄下任何檔案中..
這個錯誤要怎樣處理?
--
All Comments