Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16FFB22EF5 for ; Thu, 10 Aug 2023 17:59:46 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68C69270F for ; Thu, 10 Aug 2023 10:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691690386; x=1723226386; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6hlCwtC56ks6clPtG92S33xFAWe3sAbylNHFCxa0ya4=; b=IBcHJ4J+UPDYf88IhMgsIqGjjiElTY86FWgbd4jPcRZu1X+LICG4z1Lz oaUHvkFvmBgnQulfbcszBj67KY8gcYmsISomz2pDaDK7z9OVIJs3Xbv8O NNRNXxh69ZjN7ZVmvzlC+2UdJkKIgnZCrrIrurqBPnul6tUO0S8MfM7qt 9DI0H8MzPzDakWwZqjQs5ZPYjA3JC3H93FNGZSTDiLd0JjPXn+vQwVbG4 bo6RyjZcfO/qfkdCO5gI51EB9lZNFPQIS07Mw8d/KLYvJ6sxynXthq2DY CU1LspEb8wHt8+fluBS7kcREc/59H5pWxoWEupGUYIntYavJzOhWevARb g==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="437825478" X-IronPort-AV: E=Sophos;i="6.01,163,1684825200"; d="scan'208";a="437825478" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2023 10:59:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="725933349" X-IronPort-AV: E=Sophos;i="6.01,163,1684825200"; d="scan'208";a="725933349" Received: from anguy11-upstream.jf.intel.com ([10.166.9.133]) by orsmga007.jf.intel.com with ESMTP; 10 Aug 2023 10:59:44 -0700 From: Tony Nguyen To: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, netdev@vger.kernel.org Cc: "Gustavo A. R. Silva" , anthony.l.nguyen@intel.com, Simon Horman , Pucha Himasekhar Reddy Subject: [PATCH net-next 4/4] i40e: Replace one-element array with flex-array member in struct i40e_profile_aq_section Date: Thu, 10 Aug 2023 10:53:02 -0700 Message-Id: <20230810175302.1964182-5-anthony.l.nguyen@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230810175302.1964182-1-anthony.l.nguyen@intel.com> References: <20230810175302.1964182-1-anthony.l.nguyen@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: "Gustavo A. R. Silva" 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 Reviewed-by: Simon Horman Tested-by: Pucha Himasekhar Reddy (A Contingent worker at Intel) Signed-off-by: Tony Nguyen --- 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 8ad878ff02cf..232131bedc3e 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_type.h +++ b/drivers/net/ethernet/intel/i40e/i40e_type.h @@ -1523,7 +1523,7 @@ struct i40e_profile_aq_section { u16 flags; u8 param[16]; u16 datalen; - u8 data[1]; + u8 data[]; }; struct i40e_profile_info { -- 2.38.1