Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Rashika Kheria and committed by
John W. Linville
c8aa5ab7 0e06b090

+1 -1
+1 -1
drivers/net/wireless/iwlegacy/debug.c
··· 31 31 32 32 #include "common.h" 33 33 34 - void 34 + static void 35 35 il_clear_traffic_stats(struct il_priv *il) 36 36 { 37 37 memset(&il->tx_stats, 0, sizeof(struct traffic_stats));