mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
keys/trusted_keys: mark 'migratable' as __ro_after_init
The 'migratable' variable is initialized only during the init phase in the 'init_trusted' function and never changed. So, mark it as __ro_after_init. Signed-off-by: Len Bao <len.bao@gmx.us> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Link: https://lore.kernel.org/r/20260516152249.41851-1-len.bao@gmx.us Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
This commit is contained in:
@@ -65,7 +65,7 @@ DEFINE_STATIC_CALL_NULL(trusted_key_unseal,
|
||||
DEFINE_STATIC_CALL_NULL(trusted_key_get_random,
|
||||
*trusted_key_sources[0].ops->get_random);
|
||||
static void (*trusted_key_exit)(void);
|
||||
static unsigned char migratable;
|
||||
static unsigned char migratable __ro_after_init;
|
||||
|
||||
enum {
|
||||
Opt_err,
|
||||
|
||||
Reference in New Issue
Block a user