linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] security: remove EARLY_LSM_COUNT which never used
@ 2020-01-21  8:50 Alex Shi
  2020-01-23 17:38 ` Serge E. Hallyn
  2020-01-23 23:44 ` James Morris
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Shi @ 2020-01-21  8:50 UTC (permalink / raw)
  Cc: Matthew Garrett, James Morris, Serge E. Hallyn,
	linux-security-module, linux-kernel

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@linux.alibaba.com>
Cc: Matthew Garrett <matthewgarrett@google.com>
Cc: James Morris <jmorris@namei.org> 
Cc: "Serge E. Hallyn" <serge@hallyn.com> 
Cc: linux-security-module@vger.kernel.org 
Cc: linux-kernel@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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] security: remove EARLY_LSM_COUNT which never used
  2020-01-21  8:50 [PATCH] security: remove EARLY_LSM_COUNT which never used Alex Shi
@ 2020-01-23 17:38 ` Serge E. Hallyn
  2020-01-23 23:44 ` James Morris
  1 sibling, 0 replies; 3+ messages in thread
From: Serge E. Hallyn @ 2020-01-23 17:38 UTC (permalink / raw)
  To: Alex Shi
  Cc: Matthew Garrett, James Morris, Serge E. Hallyn,
	linux-security-module, linux-kernel

On Tue, Jan 21, 2020 at 04:50:03PM +0800, Alex Shi wrote:
> 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@linux.alibaba.com>
> Cc: Matthew Garrett <matthewgarrett@google.com>
> Cc: James Morris <jmorris@namei.org> 
> Cc: "Serge E. Hallyn" <serge@hallyn.com> 

Acked-by: Serge Hallyn <serge@hallyn.com>

Does indeed seem unused.

> Cc: linux-security-module@vger.kernel.org 
> Cc: linux-kernel@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] security: remove EARLY_LSM_COUNT which never used
  2020-01-21  8:50 [PATCH] security: remove EARLY_LSM_COUNT which never used Alex Shi
  2020-01-23 17:38 ` Serge E. Hallyn
@ 2020-01-23 23:44 ` James Morris
  1 sibling, 0 replies; 3+ messages in thread
From: James Morris @ 2020-01-23 23:44 UTC (permalink / raw)
  To: Alex Shi
  Cc: Matthew Garrett, Serge E. Hallyn, linux-security-module, linux-kernel

On Tue, 21 Jan 2020, Alex Shi wrote:

> 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@linux.alibaba.com>

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

-- 
James Morris
<jmorris@namei.org>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-23 23:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21  8:50 [PATCH] security: remove EARLY_LSM_COUNT which never used Alex Shi
2020-01-23 17:38 ` Serge E. Hallyn
2020-01-23 23:44 ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).