diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-25 20:23:42 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-09-22 11:43:20 +0200 |
commit | d989364535803dfcd97e3b6832d9698109add6ff (patch) | |
tree | f2c82cb4c5503788ffcd5d8f1970f74c8a2f8cd1 /drivers | |
parent | crypto: crypto4xx - pointer arithmetic overhaul (diff) | |
download | linux-d989364535803dfcd97e3b6832d9698109add6ff.tar.xz linux-d989364535803dfcd97e3b6832d9698109add6ff.zip |
crypto: padlock-aes - constify x86_cpu_id
x86_cpu_id are not supposed to change at runtime. MODULE_DEVICE_TABLE
and x86_match_cpu are working with const x86_cpu_id. So mark the
non-const x86_cpu_id structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/padlock-aes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/padlock-aes.c b/drivers/crypto/padlock-aes.c index b3869748cc6b..4b6642a25df5 100644 --- a/drivers/crypto/padlock-aes.c +++ b/drivers/crypto/padlock-aes.c @@ -482,7 +482,7 @@ static struct crypto_alg cbc_aes_alg = { } }; -static struct x86_cpu_id padlock_cpu_id[] = { +static const struct x86_cpu_id padlock_cpu_id[] = { X86_FEATURE_MATCH(X86_FEATURE_XCRYPT), {} }; |