Skip to contentSkip to conversation

security: remove EARLY_LSM_COUNT which never used

PATCH Applied Alex Shi 3 participants 3 messages Jan 21, 2020 – Jan 23, 2020 Security (LSM)

lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 security: remove EARLY_LSM_COUNT which never used

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

Cc Matthew Garrett <[email protected]>
Cc James Morris <[email protected]>
Cc "Serge E. Hallyn" <[email protected]>
---
 security/security.c | 1 -
 1 file changed, 1 deletion(-)
security/security.c +0 -1
index cd2d18d2d279..b9771de83cf7 100644
@@ -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);
Signature · 1 line
1.8.3.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Alex Shi

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

Cc Matthew Garrett <[email protected]>
Cc James Morris <[email protected]>
Cc "Serge E. Hallyn" <[email protected]>

Does indeed seem unused.

Quoted 20 lines
---
 security/security.c | 1 -
 1 file changed, 1 deletion(-)
security/security.c +0 -1
index cd2d18d2d279..b9771de83cf7 100644
@@ -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);
Signature · 1 line
1.8.3.1
maintainer Applied
#2 lore raw
In reply to Alex Shi
Quoted 4 lines · Alex Shi

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

Thanks, applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next-general

Signature · 2 lines
James Morris
<[email protected]>