wireless: correct sparse warning in generated regdb.c
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Jul 2010 16:29:14 +0000 (12:29 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Jul 2010 20:49:37 +0000 (16:49 -0400)
  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>
net/wireless/genregdb.awk

index 3cc9e69..53c143f 100644 (file)
@@ -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"
 }