cfg80211: avoid ABI change in 4.9.3
authorBen Hutchings <ben@decadent.org.uk>
Mon, 23 Jan 2017 15:22:56 +0000 (15:22 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 28 Jan 2017 16:11:16 +0000 (16:11 +0000)
enum nl80211_attrs got a new enumerator, which should be safe (it's
meant to be extensible).  But two exported functions take it as a
parameter type.  Hide the change from genksyms so it doesn't consider
this to change their ABI.

Gbp-Pq: Topic debian
Gbp-Pq: Name cfg80211-avoid-abi-change-in-4.9.3.patch

include/uapi/linux/nl80211.h

index d3cbe48b286d8cffd598305eb3164aa55ba0998e..c7c7fa299463928ea5b3e2a16bd9c8df0d36c59b 100644 (file)
@@ -2339,7 +2339,9 @@ enum nl80211_attrs {
        NL80211_ATTR_NAN_FUNC,
        NL80211_ATTR_NAN_MATCH,
 
+#if !defined(__KERNEL__) || !defined(__GENKSYMS__)
        NL80211_ATTR_BSSID,
+#endif
 
        /* add attributes here, update the policy in nl80211.c */