From: Jeremiah Mahler Date: Tue, 12 Aug 2014 07:03:44 +0000 (-0700) Subject: staging: rtl8192u/ieee80211: Fix sparse ieee80211_debug_init/_exit not declared warning X-Git-Tag: fixes-for-v3.18-merge-window~15^2~1263 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2ea5ff8a7cde20542d47d1398d3fc710d357f6f;p=pandora-kernel.git staging: rtl8192u/ieee80211: Fix sparse ieee80211_debug_init/_exit not declared warning A sparse warning is generated about 'ieee80211_debug_init' and 'ieee80211_debug_exit' not being declared. drivers/staging/rtl8192u/ieee80211/ieee80211_module.c:275:12: warning: symbol 'ieee80211_debug_init' was not declared. Should it be static? drivers/staging/rtl8192u/ieee80211/ieee80211_module.c:297:13: warning: symbol 'ieee80211_debug_exit' was not declared. Should it be static? These functions are used outside of this file so using static will not work. The prototypes are given in r8192U_core.c but sparse nonetheless still gives a warning. Fix the sparse warning by moving these prototypes from r8192U_core.c to ieee80211.h. Signed-off-by: Jeremiah Mahler Cc: Joel Pelaez Jorge Cc: Andrea Merello Cc: "John W. Linville" Cc: Joe Perches Cc: Himangi Saraogi Cc: Arnd Bergmann Cc: Peter P Waskiewicz Jr Cc: Ana Rey Cc: Chaitanya Hazarey Cc: Rickard Strandqvist Cc: Teodora Baluta Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed