]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: work around a sparse issue
authorJohannes Berg <johannes.berg@intel.com>
Mon, 21 Nov 2011 10:09:22 +0000 (11:09 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Nov 2011 21:22:10 +0000 (16:22 -0500)
commit9c40c3379dab54c727287ec6995c1d19631f80f2
treedaf8b7805b5ecadee495134c60ce5289101f8ec5
parent399c02736307326998043e764ff19dfea6fc05e1
cfg80211: work around a sparse issue

sparse reports:
net/wireless/util.c:499:30: error: cannot size expression
net/wireless/util.c:503:30: error: cannot size expression

This is evidently due to the EXPORT_SYMBOL() of the
bridge_tunnel_header and rfc1042 header variables.
Move them to the end of the file to work around the
sparse issue. The error itself from sparse can be
ignored safely, but since sparse stops parsing at
errors, other issues after this would go undetected.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/util.c