2016-05-31 101 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; 

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