]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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 3cc9e69880a80ab90d1dc872c0f87c7263e0f9fe..53c143f5e770d3dacb649acbec621c63dd8b9a5a 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"
 }