提交 c8aa5ab7 编写于 作者: R Rashika Kheria 提交者: John W. Linville

drivers: net: Mark functions as static in debug.c

This patch marks the function il_clear_traffic_stats() in debug.c as
static because they are not used outside this file.

Thus, it also removes the following warnings in
wireless/iwlegacy/debug.c:

drivers/net/wireless/iwlegacy/debug.c:35:1: warning: no previous prototype for ‘il_clear_traffic_stats’ [-Wmissing-prototypes]
Signed-off-by: NRashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: NJosh Triplett <josh@joshtriplett.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 0e06b090
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include "common.h" #include "common.h"
void static void
il_clear_traffic_stats(struct il_priv *il) il_clear_traffic_stats(struct il_priv *il)
{ {
memset(&il->tx_stats, 0, sizeof(struct traffic_stats)); memset(&il->tx_stats, 0, sizeof(struct traffic_stats));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册