Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp555883rwo; Tue, 1 Aug 2023 23:45:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlHyq8sS0sEiWe8v393wcDLKAzWd2aAQAtcy8nnTdFXgGe4GY9WVjLeiC8Iccx/lBPpaJlXF X-Received: by 2002:aa7:ce16:0:b0:515:1e50:5498 with SMTP id d22-20020aa7ce16000000b005151e505498mr3863605edv.15.1690958706390; Tue, 01 Aug 2023 23:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690958706; cv=none; d=google.com; s=arc-20160816; b=LAion6yZk9bDn4vgqYO9zLezSLHm0JVESgGRmrsOxkOjTpRw07AFE0KGpwSLRhMApH hyQY9i551fR9/Uy09RmSPBKxtiPrgsXOy7cH5sBl/TqJsYjjYAk/OrYSXkLL3WJrGy+h ycIS8fKs4niqLLiVif+oWkLLDFNpJIVVp/FeNDVqgHNsTvOD581s47jn3HCMF6PpIqDW nogMcXoF9Y7krErldRrl7x5KjjdUD20kOsJ1NfM8n491Mi+l5AYq732C+ozZRV0zyBxY VPoi5V4KvcSd+qC8TLHxO2BiB9TZp1tTe5ujb0RNnNUr1lPF4T4WhLNoEUid8YSBoyW+ 0QuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BdT5InxzLsPrnUC9KW3M5vI51BbqPBfr/W7DUiagpSs=; fh=Ld4bEJMliET3pg5SF4t5/bzEu7hB0dttY59G24FXQc0=; b=cOuohR+REdpUVtkmwJU9h7JaPykjTZ1GReI8P2+oo0q9w/B2NKUhZdg79YIVtlOjjv RI+/2slWbvPferbYhbjXQfil6ebuOYXt/QDtQCkEakxirKhklhss8ZoPTiwjTploQqdj Dw0pcKAHSJSd7w0Xa4i8bjXTu9COKkmGE8qM7GMy0QdxoXE1sMAfKtphxQO6MZWqCfpJ QL0sOLFwMC6SBU1a3HXsqst2eddFSkECtMXVIfBGy8jBAQYivW9QNV2MjMjhRz1p0Z7V BmnqgFAs2YDF6UWyxriQlLdksdM3vpuuhjRwUQvgUNCuWFObwe7rV/gPG0DVVbotExAp Exlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TGoDdwO7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020aa7d9c5000000b0051e3371a8bbsi10028750eds.2.2023.08.01.23.44.41; Tue, 01 Aug 2023 23:45:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TGoDdwO7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231796AbjHBFGO (ORCPT + 99 others); Wed, 2 Aug 2023 01:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230411AbjHBFGM (ORCPT ); Wed, 2 Aug 2023 01:06:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F6F3210A; Tue, 1 Aug 2023 22:06:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E903D617D8; Wed, 2 Aug 2023 05:06:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39A3CC433C7; Wed, 2 Aug 2023 05:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690952762; bh=vIsmaLOHNHCmvZTxuykbw4hyJBbUacnWk4VvMmzUK9Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TGoDdwO7hOgoCxkDVBaD4hulYPoImelxdjPjcsAzBC2Hck8e6L1owP4Unq/187OVz AaStDAYVHCuEzbXh3yndCl5XABgFRv/5KrYue7+slumcRYB7WQ2g3CME5mdZ+llh66 jII4nKJ7g63cth/fX997PJyM8Kry7RBTy31bDAp+MWEwX2BfKZg4uLn9TWVJWWQtP5 oKN++/7yTJTf5yp54Xz8LRF10QeLPhaJaOBXF8ivvu+VLabPMa2Nnf3KHILWMn692S Xb3thfwhybIBYbI34Btvu072VaqksAauTVZoOI3ndEnrtNlYosLlTpWYVOr0c8x5TY woBuhwwh0qrpA== Date: Tue, 1 Aug 2023 23:07:06 -0600 From: "Gustavo A. R. Silva" To: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , linux-hardening@vger.kernel.org Subject: [PATCH 4/4][next] i40e: Replace one-element array with flex-array member in struct i40e_profile_aq_section Message-ID: <8b945fa3afeb26b954c400c5b880c0ae175091ac.1690938732.git.gustavoars@kernel.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org One-element and zero-length arrays are deprecated. So, replace one-element array in struct i40e_profile_aq_section with flexible-array member. This results in no differences in binary output. Link: https://github.com/KSPP/linux/issues/335 Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/intel/i40e/i40e_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40e/i40e_type.h b/drivers/net/ethernet/intel/i40e/i40e_type.h index 010261a10f56..b9d50218344b 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_type.h +++ b/drivers/net/ethernet/intel/i40e/i40e_type.h @@ -1524,7 +1524,7 @@ struct i40e_profile_aq_section { u16 flags; u8 param[16]; u16 datalen; - u8 data[1]; + u8 data[]; }; struct i40e_profile_info { -- 2.34.1