[問題] 編譯driver的錯誤 SA_INTERRUPT
我在編譯 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 似乎沒有被定義在這個目錄下任何檔案中..
這個錯誤要怎樣處理?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.115.34.47
→
06/17 18:16, , 1F
06/17 18:16, 1F
→
06/17 18:17, , 2F
06/17 18:17, 2F
→
06/17 18:27, , 3F
06/17 18:27, 3F
→
06/17 18:31, , 4F
06/17 18:31, 4F
→
06/17 18:37, , 5F
06/17 18:37, 5F
→
06/17 18:37, , 6F
06/17 18:37, 6F
→
06/17 18:37, , 7F
06/17 18:37, 7F
→
06/17 18:38, , 8F
06/17 18:38, 8F
→
06/17 18:42, , 9F
06/17 18:42, 9F
→
06/17 18:51, , 10F
06/17 18:51, 10F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):