]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: fix vendor event static warnings
authorJohannes Berg <johannes.berg@intel.com>
Wed, 8 Sep 2021 07:35:26 +0000 (09:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 8 Sep 2021 07:35:26 +0000 (09:35 +0200)
The vendor event section/descriptors can all be static,
adjust the macro accordingly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
iw.h

diff --git a/iw.h b/iw.h
index 0c37feba4e9257102dd3df078830d509b3ca8afa..a118f5bc7f6443d3ee2ad401fc9a1b74f57e969b 100644 (file)
--- a/iw.h
+++ b/iw.h
@@ -162,7 +162,7 @@ struct vendor_event {
 };
 
 #define VENDOR_EVENT(_id, _subcmd, _callback)                          \
-       const struct vendor_event                                       \
+       static const struct vendor_event                                \
        vendor_event_ ## _id ## _ ## _subcmd = {                        \
                .vendor_id = _id,                                       \
                .subcmd = _subcmd,                                      \