From: John W. Linville Date: Tue, 20 Jul 2010 16:29:14 +0000 (-0400) Subject: wireless: correct sparse warning in generated regdb.c X-Git-Tag: v2.6.36-rc1~571^2~107^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ea6fb6d1eb4d06af5ad2114d1f1f22a6067adac;p=platform%2Fkernel%2Flinux-3.10.git wireless: correct sparse warning in generated regdb.c CHECK net/wireless/regdb.c net/wireless/regdb.c:8:34: warning: symbol 'reg_regdb' was not declared. Should it be static? net/wireless/regdb.c:11:5: warning: symbol 'reg_regdb_size' was not declared. Should it be static? Simply include the also generated regdb.h. Signed-off-by: John W. Linville --- diff --git a/net/wireless/genregdb.awk b/net/wireless/genregdb.awk index 3cc9e69..53c143f 100644 --- a/net/wireless/genregdb.awk +++ b/net/wireless/genregdb.awk @@ -21,6 +21,7 @@ BEGIN { print "" print "#include " print "#include " + print "#include \"regdb.h\"" print "" regdb = "const struct ieee80211_regdomain *reg_regdb[] = {\n" }