From 087feb980443aadc7c62f6c26d3867543b470d8c Mon Sep 17 00:00:00 2001 From: KaiGai Kohei Date: Wed, 3 Oct 2007 23:42:56 +0900 Subject: SELinux: kills warnings in Improve SELinux performance when AVC misses This patch kills ugly warnings when the "Improve SELinux performance when ACV misses" patch. Signed-off-by: KaiGai Kohei Signed-off-by: James Morris --- security/selinux/ss/ebitmap.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'security/selinux/ss/ebitmap.h') diff --git a/security/selinux/ss/ebitmap.h b/security/selinux/ss/ebitmap.h index e38a327dd703..f283b4367f54 100644 --- a/security/selinux/ss/ebitmap.h +++ b/security/selinux/ss/ebitmap.h @@ -21,6 +21,8 @@ #define EBITMAP_UNIT_SIZE BITS_PER_LONG #define EBITMAP_SIZE (EBITMAP_UNIT_NUMS * EBITMAP_UNIT_SIZE) #define EBITMAP_BIT 1ULL +#define EBITMAP_SHIFT_UNIT_SIZE(x) \ + (((x) >> EBITMAP_UNIT_SIZE / 2) >> EBITMAP_UNIT_SIZE / 2) struct ebitmap_node { struct ebitmap_node *next; -- cgit v1.2.3