diff options
author | KaiGai Kohei <kaigai@kaigai.gr.jp> | 2007-10-03 23:42:56 +0900 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2007-10-17 08:59:36 +1000 |
commit | 087feb980443aadc7c62f6c26d3867543b470d8c (patch) | |
tree | 06922e22b5390aeb2ad9ef8ea64b4f05d1d354e3 /security/selinux/ss/ebitmap.h | |
parent | 9fe79ad1e43d236bbbb8edb3cf634356de714c79 (diff) | |
download | blackbird-op-linux-087feb980443aadc7c62f6c26d3867543b470d8c.tar.gz blackbird-op-linux-087feb980443aadc7c62f6c26d3867543b470d8c.zip |
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 <kaigai@ak.jp.nec.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/ss/ebitmap.h')
-rw-r--r-- | security/selinux/ss/ebitmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |