summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/padlock-sha.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-25 20:23:59 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-09-22 11:43:20 +0200
commit16d5cee5cf65ff704e59a1e70fa82bf798b5e75e (patch)
treea4b606dbb1cdeac8b8699228ccf7dd2d4eae8568 /drivers/crypto/padlock-sha.c
parentcrypto: padlock-aes - constify x86_cpu_id (diff)
downloadlinux-16d5cee5cf65ff704e59a1e70fa82bf798b5e75e.tar.xz
linux-16d5cee5cf65ff704e59a1e70fa82bf798b5e75e.zip
crypto: padlock-sha - 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 '')
-rw-r--r--drivers/crypto/padlock-sha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/padlock-sha.c b/drivers/crypto/padlock-sha.c
index bc72d20c32c3..d32c79328876 100644
--- a/drivers/crypto/padlock-sha.c
+++ b/drivers/crypto/padlock-sha.c
@@ -509,7 +509,7 @@ static struct shash_alg sha256_alg_nano = {
}
};
-static struct x86_cpu_id padlock_sha_ids[] = {
+static const struct x86_cpu_id padlock_sha_ids[] = {
X86_FEATURE_MATCH(X86_FEATURE_PHE),
{}
};