mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
evm: mark evm_fixmode as __ro_after_init
commit 32ba540f3c
upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cbdbd77d9b
commit
8125c6effb
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ char *evm_config_xattrnames[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
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…
Reference in a new issue