Commit 90a8c78b authored by valdis.kletnieks@vt.edu's avatar valdis.kletnieks@vt.edu Committed by Herbert Xu
Browse files

crypto/morus(640,1280) - make crypto_...-algs static



sparse complains thusly:

  CHECK   arch/x86/crypto/morus640-sse2-glue.c
arch/x86/crypto/morus640-sse2-glue.c:38:1: warning: symbol 'crypto_morus640_sse2_algs' was not declared. Should it be static?
  CHECK   arch/x86/crypto/morus1280-sse2-glue.c
arch/x86/crypto/morus1280-sse2-glue.c:38:1: warning: symbol 'crypto_morus1280_sse2_algs' was not declared. Should it be static?
  CHECK   arch/x86/crypto/morus1280-avx2-glue.c
arch/x86/crypto/morus1280-avx2-glue.c:38:1: warning: symbol 'crypto_morus1280_avx2_algs' was not declared. Should it be static?

and sparse is correct - these don't need to be global and polluting the namespace.

Signed-off-by: default avatarValdis Kletnieks <valdis.kletnieks@vt.edu>
Acked-by: default avatarOndrej Mosnacek <omosnacek@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 96808c59
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ void cryptd_morus1280_glue_exit_tfm(struct crypto_aead *aead);
	{ \
	} \
	\
	struct aead_alg crypto_morus1280_##id##_algs[] = {\
	static struct aead_alg crypto_morus1280_##id##_algs[] = {\
		{ \
			.setkey = crypto_morus1280_glue_setkey, \
			.setauthsize = crypto_morus1280_glue_setauthsize, \
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ void cryptd_morus640_glue_exit_tfm(struct crypto_aead *aead);
	{ \
	} \
	\
	struct aead_alg crypto_morus640_##id##_algs[] = {\
	static struct aead_alg crypto_morus640_##id##_algs[] = {\
		{ \
			.setkey = crypto_morus640_glue_setkey, \
			.setauthsize = crypto_morus640_glue_setauthsize, \