crypto: padlock-aes - constify x86_cpu_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 25 Aug 2017 18:23:42 +0000 (23:53 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Sep 2017 09:43:20 +0000 (17:43 +0800)
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>
drivers/crypto/padlock-aes.c

index b3869748cc6b1f5a49d398e004c771b91a18f3e9..4b6642a25df51e9315b816c9062791febdaf6d10 100644 (file)
@@ -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),
        {}
 };