【问题标题】:Kernel Compiling Bluetooth error内核编译蓝牙错误
【发布时间】:2016-09-28 21:03:00
【问题描述】:

我正在尝试为三星 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

我用谷歌搜索了几个小时的问题, 但还没有找到任何解决方案。

我需要做什么来解决这个问题?

非常感谢。

【问题讨论】:

    标签: bluetooth kernel


    【解决方案1】:

    感谢@jcadduono, 它解决了我的问题。

    这是他的解决方案:

    在 btusb.c 的第 1231 行附近,可能有一个 module_param 将 ignore_dga 声明为布尔切换,但 ignore_dga 是 可能在文件顶部附近声明为设计用于的整数 1 或 0 个选项。将其更改为布尔值,例如 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;
    

    保存并制作,效果很好。

    【讨论】:

      猜你喜欢
      • 2020-10-20
      • 2017-07-30
      • 2010-12-06
      • 2015-10-14
      • 2018-04-19
      • 1970-01-01
      • 1970-01-01
      • 2012-11-19
      • 1970-01-01
      相关资源
      最近更新 更多