From patchwork Tue Jun 29 11:48:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 468421 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 015D0C11F66 for ; Tue, 29 Jun 2021 11:48:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0DD061D2B for ; Tue, 29 Jun 2021 11:48:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232790AbhF2Lua (ORCPT ); Tue, 29 Jun 2021 07:50:30 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:16114 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232664AbhF2Lua (ORCPT ); Tue, 29 Jun 2021 07:50:30 -0400 X-IronPort-AV: E=Sophos;i="5.83,308,1616454000"; d="scan'208";a="517260400" 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; 29 Jun 2021 13:48:01 +0200 Date: Tue, 29 Jun 2021 13:48:01 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Megha Dey cc: labuser , Tomasz Kantecki , Herbert Xu , linux-crypto@vger.kernel.org, kbuild-all@lists.01.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 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 Fixes: 7540b2861e52 ("crypto: aesni - AVX512 version of AESNI-GCM using VPCLMULQDQ") CC: Megha Dey Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://github.com/meghadey/crypto for_crypto_avx512 head: a89c5880f0d6260dd593bf579df26f2a2d56ac32 commit: 7540b2861e5292b5993f8e693fc69510b2a7277a [5/6] crypto: aesni - AVX512 version of AESNI-GCM using VPCLMULQDQ :::::: branch date: 7 hours ago :::::: commit date: 7 hours 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,