summaryrefslogtreecommitdiffstats
path: root/security/landlock/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/landlock/common.h')
-rw-r--r--security/landlock/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/landlock/common.h b/security/landlock/common.h
index 5dc0fe15707d..0eb1d34c2eae 100644
--- a/security/landlock/common.h
+++ b/security/landlock/common.h
@@ -17,4 +17,6 @@
#define pr_fmt(fmt) LANDLOCK_NAME ": " fmt
+#define BIT_INDEX(bit) HWEIGHT(bit - 1)
+
#endif /* _SECURITY_LANDLOCK_COMMON_H */