Skip to content

Commit f30cfac

Browse files
KAGA-KOKOsuryasaimadhu
authored andcommitted
crypto: Convert to new CPU match macros
The new macro set has a consistent namespace and uses C99 initializers instead of the grufty C89 ones. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent d51ba9c commit f30cfac

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

arch/x86/crypto/aesni-intel_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ static struct aead_alg aesni_aeads[0];
10641064
static struct simd_aead_alg *aesni_simd_aeads[ARRAY_SIZE(aesni_aeads)];
10651065

10661066
static const struct x86_cpu_id aesni_cpu_id[] = {
1067-
X86_FEATURE_MATCH(X86_FEATURE_AES),
1067+
X86_MATCH_FEATURE(X86_FEATURE_AES, NULL),
10681068
{}
10691069
};
10701070
MODULE_DEVICE_TABLE(x86cpu, aesni_cpu_id);

arch/x86/crypto/crc32-pclmul_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static struct shash_alg alg = {
170170
};
171171

172172
static const struct x86_cpu_id crc32pclmul_cpu_id[] = {
173-
X86_FEATURE_MATCH(X86_FEATURE_PCLMULQDQ),
173+
X86_MATCH_FEATURE(X86_FEATURE_PCLMULQDQ, NULL),
174174
{}
175175
};
176176
MODULE_DEVICE_TABLE(x86cpu, crc32pclmul_cpu_id);

arch/x86/crypto/crc32c-intel_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ static struct shash_alg alg = {
221221
};
222222

223223
static const struct x86_cpu_id crc32c_cpu_id[] = {
224-
X86_FEATURE_MATCH(X86_FEATURE_XMM4_2),
224+
X86_MATCH_FEATURE(X86_FEATURE_XMM4_2, NULL),
225225
{}
226226
};
227227
MODULE_DEVICE_TABLE(x86cpu, crc32c_cpu_id);

arch/x86/crypto/crct10dif-pclmul_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static struct shash_alg alg = {
114114
};
115115

116116
static const struct x86_cpu_id crct10dif_cpu_id[] = {
117-
X86_FEATURE_MATCH(X86_FEATURE_PCLMULQDQ),
117+
X86_MATCH_FEATURE(X86_FEATURE_PCLMULQDQ, NULL),
118118
{}
119119
};
120120
MODULE_DEVICE_TABLE(x86cpu, crct10dif_cpu_id);

arch/x86/crypto/ghash-clmulni-intel_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static struct ahash_alg ghash_async_alg = {
313313
};
314314

315315
static const struct x86_cpu_id pcmul_cpu_id[] = {
316-
X86_FEATURE_MATCH(X86_FEATURE_PCLMULQDQ), /* Pickle-Mickle-Duck */
316+
X86_MATCH_FEATURE(X86_FEATURE_PCLMULQDQ, NULL), /* Pickle-Mickle-Duck */
317317
{}
318318
};
319319
MODULE_DEVICE_TABLE(x86cpu, pcmul_cpu_id);

drivers/crypto/padlock-aes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ static struct skcipher_alg cbc_aes_alg = {
474474
};
475475

476476
static const struct x86_cpu_id padlock_cpu_id[] = {
477-
X86_FEATURE_MATCH(X86_FEATURE_XCRYPT),
477+
X86_MATCH_FEATURE(X86_FEATURE_XCRYPT, NULL),
478478
{}
479479
};
480480
MODULE_DEVICE_TABLE(x86cpu, padlock_cpu_id);

drivers/crypto/padlock-sha.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ static struct shash_alg sha256_alg_nano = {
490490
};
491491

492492
static const struct x86_cpu_id padlock_sha_ids[] = {
493-
X86_FEATURE_MATCH(X86_FEATURE_PHE),
493+
X86_MATCH_FEATURE(X86_FEATURE_PHE, NULL),
494494
{}
495495
};
496496
MODULE_DEVICE_TABLE(x86cpu, padlock_sha_ids);

0 commit comments

Comments
 (0)