[PATCH 16/47] headers: Add DECLARE_STATIC_KEY_FALSE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This define was added in kernel 4.9 and is used by mac80211 now.
The code was copied from the upstream kernel.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 backport/backport-include/linux/jump_label.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 backport/backport-include/linux/jump_label.h

diff --git a/backport/backport-include/linux/jump_label.h b/backport/backport-include/linux/jump_label.h
new file mode 100644
index 00000000..43608fa0
--- /dev/null
+++ b/backport/backport-include/linux/jump_label.h
@@ -0,0 +1,10 @@
+#ifndef __BACKPORT_LINUX_JUMP_LABEL_H
+#define __BACKPORT_LINUX_JUMP_LABEL_H
+#include_next <linux/jump_label.h>
+
+#ifndef DECLARE_STATIC_KEY_FALSE
+#define DECLARE_STATIC_KEY_FALSE(name)	\
+	extern struct static_key_false name
+#endif
+
+#endif /* __BACKPORT_LINUX_JUMP_LABEL_H */
-- 
2.30.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux