backports: genetlink: move GENL_UNS_ADMIN_PERM to uapi
authorLuca Coelho <luciano.coelho@intel.com>
Tue, 16 Aug 2016 08:37:50 +0000 (11:37 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Feb 2017 14:00:43 +0000 (15:00 +0100)
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/backport-include/net/genetlink.h
backport/backport-include/uapi/linux/genetlink.h [new file with mode: 0644]

index cf3e67c5cfd382c746147d2718dbf68586741235..2e0bb3ecf5dd3cb42214b220a1cc54e93bdb7299 100644 (file)
@@ -154,8 +154,4 @@ backport_genlmsg_multicast_allns(struct genl_family *family,
 #endif /* < 4.4 */
 #endif /* < 3.13 */
 
-#ifndef GENL_UNS_ADMIN_PERM
-#define GENL_UNS_ADMIN_PERM    GENL_ADMIN_PERM
-#endif
-
 #endif /* __BACKPORT_NET_GENETLINK_H */
diff --git a/backport/backport-include/uapi/linux/genetlink.h b/backport/backport-include/uapi/linux/genetlink.h
new file mode 100644 (file)
index 0000000..5292892
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef __BACKPORT_UAPI_LINUX_GENETLINK_H
+#define __BACKPORT_UAPI_LINUX_GENETLINK_H
+#include_next <uapi/linux/genetlink.h>
+
+#ifndef GENL_UNS_ADMIN_PERM
+#define GENL_UNS_ADMIN_PERM GENL_ADMIN_PERM
+#endif
+
+#endif /* __BACKPORT_UAPI_LINUX_GENETLINK_H */