diff mbox series

[16/47] headers: Add DECLARE_STATIC_KEY_FALSE

Message ID 20211019214320.2035704-17-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series backports: Update to kernel 5.15-rc6 | expand

Commit Message

Hauke Mehrtens Oct. 19, 2021, 9:42 p.m. UTC
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@hauke-m.de>
---
 backport/backport-include/linux/jump_label.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 backport/backport-include/linux/jump_label.h
diff mbox series

Patch

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 */