lkml.org 
[lkml]   [2022]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v38 37/39] LSM: Removed scaffolding function lsmcontext_init
Date
The scaffolding function lsmcontext_init() is no longer used.
Remove it.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
---
include/linux/security.h | 19 -------------------
1 file changed, 19 deletions(-)

diff --git a/include/linux/security.h b/include/linux/security.h
index c190b9189287..f6a247033556 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
@@ -166,25 +166,6 @@ struct lsmcontext {
int slot; /* Identifies the module */
};

-/**
- * lsmcontext_init - initialize an lsmcontext structure.
- * @cp: Pointer to the context to initialize
- * @context: Initial context, or NULL
- * @size: Size of context, or 0
- * @slot: Which LSM provided the context
- *
- * Fill in the lsmcontext from the provided information.
- * This is a scaffolding function that will be removed when
- * lsmcontext integration is complete.
- */
-static inline void lsmcontext_init(struct lsmcontext *cp, char *context,
- u32 size, int slot)
-{
- cp->slot = slot;
- cp->context = context;
- cp->len = size;
-}
-
/*
* Data exported by the security modules
*
--
2.37.3
\
 
 \ /
  Last update: 2022-09-27 22:16    [W:0.379 / U:0.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site