summaryrefslogtreecommitdiffstats
path: root/net/wireless/genregdb.awk
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-07-20 12:29:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-07-20 16:49:37 -0400
commit2ea6fb6d1eb4d06af5ad2114d1f1f22a6067adac (patch)
treecd7c92eade53362fe684cd665d61c7ea0581f6f2 /net/wireless/genregdb.awk
parentc28991a02caec1f3bfe4638ccf4e494c3e9418a3 (diff)
downloadlinux-2ea6fb6d1eb4d06af5ad2114d1f1f22a6067adac.tar.bz2
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 <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/genregdb.awk')
-rw-r--r--net/wireless/genregdb.awk1
1 files changed, 1 insertions, 0 deletions
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 <linux/nl80211.h>"
print "#include <net/cfg80211.h>"
+ print "#include \"regdb.h\""
print ""
regdb = "const struct ieee80211_regdomain *reg_regdb[] = {\n"
}