mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-18 04:54:52 +00:00
evm: mark evm_fixmode as __ro_after_init
The evm_fixmode is only configurable by command-line option and it is never modified outside initcalls, so declaring it with __ro_after_init is better. Signed-off-by: Austin Kim <austin.kim@lge.com> Cc: stable@vger.kernel.org Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
cc4299ea03
commit
32ba540f3c
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ static struct xattr_list evm_config_default_xattrnames[] = {
|
|||
|
||||
LIST_HEAD(evm_config_xattrnames);
|
||||
|
||||
static int evm_fixmode;
|
||||
static int evm_fixmode __ro_after_init;
|
||||
static int __init evm_set_fixmode(char *str)
|
||||
{
|
||||
if (strncmp(str, "fix", 3) == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue