From: Johannes Berg Date: Wed, 8 Sep 2021 07:35:26 +0000 (+0200) Subject: iw: fix vendor event static warnings X-Git-Tag: v5.16~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f71bd68b74c6229e6cd770606d684704cd8e8a80;p=thirdparty%2Fiw.git iw: fix vendor event static warnings The vendor event section/descriptors can all be static, adjust the macro accordingly. Signed-off-by: Johannes Berg --- diff --git a/iw.h b/iw.h index 0c37feb..a118f5b 100644 --- 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, \