Skip to contentSkip to conversation

security:selinux: kill unused MAX_AVTAB_HASH_MASK and ebitmap_startbit

PATCH James Morris 1 participant 1 message Jan 23, 2011 1 message not in the archive SELinux security module

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines · Shan Wei

Kill unused MAX_AVTAB_HASH_MASK and ebitmap_startbit. Just compiled test.

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next

Quoted 32 lines
---
 security/selinux/ss/avtab.h   |    1 -
 security/selinux/ss/ebitmap.h |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)
security/selinux/ss/avtab.h +0 -1
index dff0c75..3417f9c 100644
@@ -86,7 +86,6 @@ void avtab_cache_destroy(void);
 
 #define MAX_AVTAB_HASH_BITS 11
 #define MAX_AVTAB_HASH_BUCKETS (1 << MAX_AVTAB_HASH_BITS)
-#define MAX_AVTAB_HASH_MASK (MAX_AVTAB_HASH_BUCKETS-1)
 
 #endif	/* _SS_AVTAB_H_ */
 
security/selinux/ss/ebitmap.h +0 -1
index 1f4e93c..922f8af 100644
@@ -36,7 +36,6 @@ struct ebitmap {
 };
 
 #define ebitmap_length(e) ((e)->highbit)
-#define ebitmap_startbit(e) ((e)->node ? (e)->node->startbit : 0)
 
 static inline unsigned int ebitmap_start_positive(struct ebitmap *e,
 						  struct ebitmap_node **n)
Signature · 1 line
1.6.3.3
Signature · 7 lines
James Morris
<[email protected]>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.