CC drivers/staging/qcacld-2.0/CORE/SERVICES/COMMON/adf/adf_nbuf.o
In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from drivers/staging/qcacld-2.0/CORE/SERVICES/COMMON/adf/adf_nbuf.c:29:
drivers/staging/qcacld-2.0/CORE/SERVICES/COMMON/adf/adf_nbuf.c: In function '__adf_nbuf_validate_skb_cb':
include/linux/compiler.h:347:38: error: call to '__compiletime_assert_1270' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct cvg_nbuf_cb) > FIELD_SIZEOF(struct sk_buff, cb)
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:330:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^
include/linux/compiler.h:347:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/bug.h:50:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/bug.h:74:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
drivers/staging/qcacld-2.0/CORE/SERVICES/COMMON/adf/adf_nbuf.c:1269:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(sizeof(struct cvg_nbuf_cb) >
^
scripts/Makefile.build:308: recipe for target 'drivers/staging/qcacld-2.0/CORE/SERVICES/COMMON/adf/adf_nbuf.o' failed
make[3]: *** [drivers/staging/qcacld-2.0/CORE/SERVICES/COMMON/adf/adf_nbuf.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/staging/qcacld-2.0' failed
make[2]: *** [drivers/staging/qcacld-2.0] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/staging' failed
make[1]: *** [drivers/staging] Error 2
Makefile:824: recipe for target 'drivers' failed
make: *** [drivers] Error 2
我该如何解决?
- 米源
- 编译器:GCC4.9
- wlan驱动:qcacld-2.0 LA.bf64.1.2.3.rb1.17
- 我是菜鸟,使用谷歌似乎找不到答案