2016-05-31 38 views
1

我想修改和建立一個新的內核爲三星S4。內核編譯藍牙錯誤

我只是這樣做here

但是當我做,我遇到了一些問題:

代碼:

drivers/bluetooth/btusb.c: In function '__check_ignore_dga': 
drivers/bluetooth/btusb.c:1231:1: warning: return from incompatible     pointer type [enabled by default] 
error, forbidden warning: btusb.c:1231 
scripts/Makefile.build:307: recipe for target  'drivers/bluetooth/btusb.o' failed 
make[2]: *** [drivers/bluetooth/btusb.o] Error 1 
scripts/Makefile.build:443: recipe for target 'drivers/bluetooth' failed 
make[1]: *** [drivers/bluetooth] Error 2 
Makefile:973: recipe for target 'drivers' failed 
make: *** [drivers] Error 2 

我有谷歌這個問題了幾個小時,但 找不到任何解決辦法呢。

我需要做些什麼來解決這個問題?

非常感謝。

回答

1

感謝@jcadduono, 它解決了我的問題。

這裏是他的solutoin:

圍繞線btusb.c 1231那裏有可能是module_param 聲明ignore_dga作爲一個布爾切換,但ignore_dga是 可能接近文件的頂部爲一個整數聲明爲 設計1或0個選擇。將其更改爲bool,就像bool ignore_dga = false; 而不是int ignore_dga = 0;例如

所以,我編輯文件drivers/bluetooth/btusb.c

然後,切換下面的代碼:

static int ignore_dga; 
static int ignore_csr; 
static int ignore_sniffer; 
static int disable_scofix; 
static int force_scofix; 

static int reset = 1; 

到:

static bool ignore_dga; 
static bool ignore_csr; 
static bool ignore_sniffer; 
static bool disable_scofix; 
static bool force_scofix; 

static bool reset = true; 

保存並作,它工作得很好。