From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57E8BC433EF for ; Fri, 12 Nov 2021 11:03:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3B02860F22 for ; Fri, 12 Nov 2021 11:03:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233619AbhKLLGW (ORCPT ); Fri, 12 Nov 2021 06:06:22 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:25863 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232791AbhKLLGW (ORCPT ); Fri, 12 Nov 2021 06:06:22 -0500 X-Greylist: delayed 427 seconds by postgrey-1.27 at vger.kernel.org; Fri, 12 Nov 2021 06:06:22 EST IronPort-Data: =?us-ascii?q?A9a23=3ABO2bra3AiM9WWu6uEfbD5cxwkn2cJEfYwER7XOP?= =?us-ascii?q?LsXnJ1joigjwByzRND2iBOK2JMGf8e4x+aNyzo0IOu8fTzIQ2QQE+nZ1PZyIT+?= =?us-ascii?q?JCdXbx1DW+pYnjMdpWbJK5fAnR3huDodKjYdVeB4EfyWlTdhSMkj/jRH+OmULS?= =?us-ascii?q?s1h1ZHmeIdg9w0HqPpMZp2uaEsfDha++8kYuaT//3YDdJ6BYoWo4g0J9vnTs01?= =?us-ascii?q?BjEVJz0iXRlDRxDlAe2e3D4l/vzL4npR5fzatE88uJX24/+IL+FEmPxp3/BC/u?= =?us-ascii?q?lm7rhc0AMKlLQFVjTzCQGHfH4214b+XdaPqUTbZLwbW9VljGIlpZ1wcpEsZiYS?= =?us-ascii?q?AEzP6SKlv51vxxwSHsuYPwdo9crJlD666R/1Xbudnbjw/woAEwnFYwe5utzR2p?= =?us-ascii?q?J8JQwKzoQbxSPwuuyxJq/S/JwnYJ7dY/sJox3knVhyyzJSPUrW5bOR43U6tJCm?= =?us-ascii?q?jQ9nMZDGbDZfcVxQSZoaR3bcVtMM1ELBZk9nc+pgGXyd3tTr1f9jao6+WLe1hB?= =?us-ascii?q?Z37/rPN3PPNWSTMNc2EGCqSTP4gzRHh4eJPSbyDyY7mirgO7f2y/2MKoXFbu38?= =?us-ascii?q?dZwjVGTz3BVAxoTPXOxudGwjk+zXYIZJ0F80jp+84Ax+VatQ927WAe3yFaEphc?= =?us-ascii?q?0SctMFPd84waIooLQ4gCEFi0PVC9ZdNsOqsA7X3op20WPktevAiZg2JWRSHSA5?= =?us-ascii?q?vKXoCm0NCw9M2APf2kHQBED7t2lp5s85i8j5P4L/LWd14KuX2iqmnbU/G5u2vM?= =?us-ascii?q?JgNBNzKuhu1bKn1qRSlHyZlZdzm3qsqiNt2uVvLKYWrE=3D?= IronPort-HdrOrdr: =?us-ascii?q?A9a23=3ADrvr26MpHffWjMBcT4H155DYdb4zR+YMi2QD?= =?us-ascii?q?/1t6SBxLfsHdv93GpoVc6fajskdjZJhGo6H3BEDgewKqyXcb2/htAV7JZniDhI?= =?us-ascii?q?KXFvAp0WKP+UyeJ8S6zJ8p6U+PG5IOT+EZIzBB/IbHCSODYpcdKEHtytHtuQ/m?= =?us-ascii?q?p00dCD2DgclbnkRE43+gYw9LrWp9dO4E/finl7t6TmGbCDlnIvhTb0NtN4Ovy7?= =?us-ascii?q?Kk9OOEEHx2YG9AmXH+9kLT1FedKWnn4v4waUIB/V5IyxmNr+WW3NTejxiT8G6v?= =?us-ascii?q?64fsha4m0OcJsuEzdPBk5/JlTwkFgWyTFc9cswjuhlEIST6UgidSrPD85xAne8?= =?us-ascii?q?xp4XLQYW3dm2qi5yDQlC8/xnO+7VPC6EGT+L2gNWlKUfZ8uQ=3D=3D?= X-IronPort-AV: E=Sophos;i="5.87,229,1631570400"; d="scan'208";a="3285933" Received: from 173.121.68.85.rev.sfr.net (HELO hadrien) ([85.68.121.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Nov 2021 11:56:22 +0100 Date: Fri, 12 Nov 2021 11:56:22 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Megha Dey cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Tomasz Kantecki , Herbert Xu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: fix flexible_array.cocci warnings Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: kernel test robot 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 Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- 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, From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1115677134688135726==" MIME-Version: 1.0 From: Julia Lawall To: kbuild-all@lists.01.org Subject: [PATCH] crypto: fix flexible_array.cocci warnings Date: Fri, 12 Nov 2021 11:56:22 +0100 Message-ID: List-Id: --===============1115677134688135726== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot 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 Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://github.com/meghadey/crypto crypto-avx512 head: 9c8c2ca77f6e2575a130bddb9767d068e1162d71 commit: 377aede9f10ee28be954473668bc6d33c6c9db75 [5/6] crypto: aesni - AVX5= 12 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, --===============1115677134688135726==--