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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2ea6fb6d1eb4d06af5ad2114d1f1f22a6067adac;p=openwrt%2Fstaging%2Fblogic.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 3cc9e69880a8..53c143f5e770 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" }