All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crypto: fix flexible_array.cocci warnings
@ 2021-11-12 10:56 ` Julia Lawall
  0 siblings, 0 replies; 6+ messages in thread
From: Julia Lawall @ 2021-11-12 10:56 UTC (permalink / raw)
  To: Megha Dey
  Cc: kbuild-all, linux-kernel, Tomasz Kantecki, Herbert Xu,
	Thomas Gleixner, Ingo Molnar, Borislav Petkov, x86,
	H. Peter Anvin, linux-crypto, linux-kernel

From: kernel test robot <lkp@intel.com>

 Zero-length and one-element arrays are deprecated, see
 Documentation/process/deprecated.rst
 Flexible-array members should be used instead.

Generated by: scripts/coccinelle/misc/flexible_array.cocci

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
---

tree:   https://github.com/meghadey/crypto crypto-avx512
head:   9c8c2ca77f6e2575a130bddb9767d068e1162d71
commit: 377aede9f10ee28be954473668bc6d33c6c9db75 [5/6] crypto: aesni - AVX512 version of AESNI-GCM using VPCLMULQDQ
:::::: branch date: 7 weeks ago
:::::: commit date: 7 weeks ago

 aesni-intel_glue.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/x86/crypto/aesni-intel_glue.c
+++ b/arch/x86/crypto/aesni-intel_glue.c
@@ -87,7 +87,7 @@ struct gcm_context_data {
 	u64 partial_block_len;
 	u64 unused;
 	/* Allocate space for hash_keys later */
-	u8 hash_keys[0];
+	u8 hash_keys[];
 };

 asmlinkage int aesni_set_key(struct crypto_aes_ctx *ctx, const u8 *in_key,

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-24  3:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 10:56 [PATCH] crypto: fix flexible_array.cocci warnings Julia Lawall
2021-11-12 10:56 ` Julia Lawall
2021-11-20  4:06 ` Herbert Xu
2021-11-20  4:06   ` Herbert Xu
2021-11-24  3:17   ` [kbuild-all] " Chen, Rong A
2021-11-24  3:17     ` Chen, Rong A

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.