- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我发现返回 void 时会抛出错误消息 error: void value not ignored as it should be be
。很公平。
我在尝试为我的 WIFI 加密狗构建驱动程序时遇到此错误。这是错误输出:
birger@raspberrypi:~/AL100ac $ sudo make ARCH=arm
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.4.26+/build M=/home/birger/AL100ac modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.26+'
CC [M] /home/birger/AL100ac/core/rtw_debug.o
/home/birger/AL100ac/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/birger/AL100ac/core/rtw_debug.c:65:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:66:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘dump_log_level’:
/home/birger/AL100ac/core/rtw_debug.c:71:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘mac_reg_dump’:
/home/birger/AL100ac/core/rtw_debug.c:98:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:103:4: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:104:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:106:4: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘bb_reg_dump’:
/home/birger/AL100ac/core/rtw_debug.c:114:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:118:4: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:119:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:121:4: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘rf_reg_dump’:
/home/birger/AL100ac/core/rtw_debug.c:138:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:141:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:146:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:147:4: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:149:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_read_reg’:
/home/birger/AL100ac/core/rtw_debug.c:208:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:215:4: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:218:4: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:221:4: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:224:4: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_fwstate’:
/home/birger/AL100ac/core/rtw_debug.c:267:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_sec_info’:
/home/birger/AL100ac/core/rtw_debug.c:278:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:282:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:285:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:287:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:290:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:292:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:295:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:297:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_mlmext_state’:
/home/birger/AL100ac/core/rtw_debug.c:311:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_roam_flags’:
/home/birger/AL100ac/core/rtw_debug.c:322:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_roam_param’:
/home/birger/AL100ac/core/rtw_debug.c:356:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:357:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_qos_option’:
/home/birger/AL100ac/core/rtw_debug.c:426:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_ht_option’:
/home/birger/AL100ac/core/rtw_debug.c:438:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_rf_info’:
/home/birger/AL100ac/core/rtw_debug.c:450:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:453:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_survey_info’:
/home/birger/AL100ac/core/rtw_debug.c:478:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:499:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_ap_info’:
/home/birger/AL100ac/core/rtw_debug.c:532:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:533:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:534:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:535:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:536:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:538:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:539:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:540:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:541:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:542:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:545:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:546:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:547:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:555:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:562:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_adapter_state’:
/home/birger/AL100ac/core/rtw_debug.c:578:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_trx_info’:
/home/birger/AL100ac/core/rtw_debug.c:594:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:596:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:598:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:604:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:608:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_rate_ctl’:
/home/birger/AL100ac/core/rtw_debug.c:621:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:622:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:624:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_suspend_resume_info’:
/home/birger/AL100ac/core/rtw_debug.c:695:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:696:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:697:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:698:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:699:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:700:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:701:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:702:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:703:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:704:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:705:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:706:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:707:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:708:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:709:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:710:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:711:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:712:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:713:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:714:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:715:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:716:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:717:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:718:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:719:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:720:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:721:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:722:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_rx_signal’:
/home/birger/AL100ac/core/rtw_debug.c:996:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:998:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:999:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1000:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_hw_status’:
/home/birger/AL100ac/core/rtw_debug.c:1016:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_ht_enable’:
/home/birger/AL100ac/core/rtw_debug.c:1065:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_bw_mode’:
/home/birger/AL100ac/core/rtw_debug.c:1103:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_ampdu_enable’:
/home/birger/AL100ac/core/rtw_debug.c:1143:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_rx_ampdu’:
/home/birger/AL100ac/core/rtw_debug.c:1184:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_en_fwps’:
/home/birger/AL100ac/core/rtw_debug.c:1235:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_rx_stbc’:
/home/birger/AL100ac/core/rtw_debug.c:1290:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_all_sta_info’:
/home/birger/AL100ac/core/rtw_debug.c:1381:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1398:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1399:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1400:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1401:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1403:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1404:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1405:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1406:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1408:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1409:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1410:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1411:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1412:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1414:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1415:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1416:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1417:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1418:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1419:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1420:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1427:7: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1439:5: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c: In function ‘proc_get_best_channel’:
/home/birger/AL100ac/core/rtw_debug.c:1512:3: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1517:2: error: void value not ignored as it ought to be
/home/birger/AL100ac/core/rtw_debug.c:1518:2: error: void value not ignored as it ought to be
scripts/Makefile.build:258: recipe for target '/home/birger/AL100ac/core/rtw_debug.o' failed
make[2]: *** [/home/birger/AL100ac/core/rtw_debug.o] Error 1
Makefile:1400: recipe for target '_module_/home/birger/AL100ac' failed
make[1]: *** [_module_/home/birger/AL100ac] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.26+'
Makefile:1385: recipe for target 'modules' failed
make: *** [modules] Error 2
具体来说,当调用名为 DBG_871X_SEL_NL
的函数时会抛出错误。
所以我猜宏是导致此问题的原因。我试着搜索它的驱动程序源代码,它是这样定义的:
/* dump message to selected 'stream' with driver-defined prefix */
#define DBG_871X_SEL_NL(sel, fmt, arg...) \
do {\
if (sel == RTW_DBGDUMP)\
DBG_871X_LEVEL(_drv_always_, fmt, ##arg); \
else {\
if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
} \
}while(0)
我无法理解导致此错误的原因以及如何解决它?
我搜索了一下,找到了这个:https://github.com/hadess/rtl8723bs/issues/30
会不会是一个影响我的类似错误?
编辑:
我应该提到在我更新内核之前同样的代码可以工作。所以我假设内核头文件中的一些函数以前返回一个值,现在是一个空函数。
最佳答案
发现内核更新后_seqdump
函数不再有返回值
因此,我通过将 if(_seqdump(sel, fmt, ##arg))
替换为 _seqdump(sel, fmt, ##arg)
来修复错误/p>
这是受影响的两个宏:
/* dump message to selected 'stream' */
#define DBG_871X_SEL(sel, fmt, arg...) \
do {\
if (sel == RTW_DBGDUMP)\
_DBG_871X_LEVEL(_drv_always_, fmt, ##arg); \
else {\
_seqdump(sel, fmt, ##arg) /*rtw_warn_on(1)*/; \
} \
}while(0)
和
/* dump message to selected 'stream' with driver-defined prefix */
#define DBG_871X_SEL_NL(sel, fmt, arg...) \
do {\
if (sel == RTW_DBGDUMP)\
DBG_871X_LEVEL(_drv_always_, fmt, ##arg); \
else {\
_seqdump(sel, fmt, ##arg) /*rtw_warn_on(1)*/; \
} \
}while(0)
关于c - 构建驱动程序产生 `error: void value not ignored as it ought to be`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40515929/
根据我的理解,INSERT IGNORE 插入一个新条目,如果它不存在,如果存在,则忽略它。所以我已经尝试这样做了一段时间,但似乎没有用。这是我的尝试: insert insert ignore in
出于某种奇怪的原因,StyleCop 不尊重我的文档规则设置。考虑以下代码: internal class SomeClass { public SomeClass() { }
我有一个带有字符串参数和 bool 返回值的方法。我想确保它总是返回 true 我试过了 myClass.Foo(A.Ignored) .WithReturnType() .Returns(tru
这个问题在这里已经有了答案: Filter invoke twice when register as Spring bean (2 个答案) 关闭 1 年前。 我们正面临 SpringSecuri
将 iconv 与 //TRANSLIT//IGNORE 一起使用从 utf8 转换为 ascii 工作正常;它根据当前语言环境(在我的情况下为 de_DE)将不可转换的字符替换为正确的音译: > e
我有这样的查询: $query="INSERT IGNORE INTO mytable (key, word1, word2) VALUES (1, 'abc', 'def')"; 如果因为主键已经存
我有一个 MySQL 表,如下所示: `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `company_id` int(8) unsigned NOT N
git blame --ignore-revs-file显然是现代 Git 中存在的一个选项。 只有一个问题。它不起作用。 或者至少,它对我不起作用: 您可以将其添加到 shell 脚本中: mkdi
使用docker stack deploy,我可以看到如下信息: Ignoring unsupported options: restart 是否意味着重启政策没有到位? 是否必须在撰写文件之外指定它
我正在尝试检查被 git 忽略的文件,我发现 2 个命令显示相同的结果。 哪个是 git check-ignore * git ls-files --others --ignored --exclud
我想为我的 bash 设置和插件等创建一个 git 仓库。我忽略了所有内容(第 0 行),然后在 repo 中手动添加了我想要的文件/文件夹。 (我必须这样做,因为 repo 在我的 ~ 文件夹中。)
我们有一个集中式开发服务器,每个人都在本地结账处工作。我们如何仅忽略本地存储库中的特定目录,而不忽略集中存储库中的特定目录? 一些背景资料: 该项目是一个Drupal站点,该站点的文件目录一直在变化。
当我向 svn:ignore 条目添加一些东西时,它是存储在存储库中还是存储在我的本地副本中? (在 Tortoise 中,为什么添加到 svn:ignore 的项目会出现在我的更改列表中?) 最佳答
我想确保当我从 svn 结帐时,某些 ide 项目元数据文件没有更新。不幸的是,在创建项目时它已被 checkin 项目,但我有我自己的这些文件版本。 svn:ignore 是否也会在更新期间忽略文件
我有一个目录,其中包含具有各种扩展名的文件。我想在 svn:ignore 中执行与以下 .gitignore 代码等效的操作: *.* # ignore everything !.htaccess #
我在实时服务器上有一个大型项目,我想将其提交给 svn 存储库。我已使用 svn add 将所有文件和目录添加到存储库中. 问题是我想提交一个文件夹结构,但没有它的内容。文件夹名称是: /home/m
当我使用 svn:ignore 从 SVN 中排除文件时然后另一个人尝试提交排除的文件, svn 阻止他?或者他必须在他的电脑上执行相同的命令? 最佳答案 想象一下,如果您有一堆 Java 文件( *
如果已经有一个带有_id的文档,是否可以不重新索引文档?也许像MySQL中的INSERT IGNORE查询一样? 我使用批量API,并且重新索引需要很长时间,因此我只想索引丢失的文档。 可能吗? 最佳
我的房间有问题。 我正在使用带有 Gson 转换器的改造作为其余 api,我想与房间分享 pojos。一般来说它可以工作,但在某些情况下我需要忽略一些字段,因为我有对象列表。我尝试使用 @Ignore
我正在使用 vba 代码从数组中查找值。有些结果是“#N/A”,并且单元格的左上角会出现一个绿色三角形。我想自动删除绿色三角形(忽略错误),但“#N/A”结果应该保留,只需删除绿色三角形即可。 有人知
我是一名优秀的程序员,十分优秀!