[PATCH] security: remove EARLY_LSM_COUNT which never used

Alex Shi alex.shi at linux.alibaba.com
Tue Jan 21 08:50:03 UTC 2020


This macro is never used from it was introduced in commit e6b1db98cf4d5
("security: Support early LSMs"), better to remove it.

Signed-off-by: Alex Shi <alex.shi at linux.alibaba.com>
Cc: Matthew Garrett <matthewgarrett at google.com>
Cc: James Morris <jmorris at namei.org> 
Cc: "Serge E. Hallyn" <serge at hallyn.com> 
Cc: linux-security-module at vger.kernel.org 
Cc: linux-kernel at vger.kernel.org 
---
 security/security.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/security/security.c b/security/security.c
index cd2d18d2d279..b9771de83cf7 100644
--- a/security/security.c
+++ b/security/security.c
@@ -33,7 +33,6 @@
 
 /* How many LSMs were built into the kernel? */
 #define LSM_COUNT (__end_lsm_info - __start_lsm_info)
-#define EARLY_LSM_COUNT (__end_early_lsm_info - __start_early_lsm_info)
 
 struct security_hook_heads security_hook_heads __lsm_ro_after_init;
 static BLOCKING_NOTIFIER_HEAD(blocking_lsm_notifier_chain);
-- 
1.8.3.1



More information about the Linux-security-module-archive mailing list