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 C0AB821D22 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 1302BE7E 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=pj0RsNBR+xCoAt4ydn/4aqfsLj4rnM6r2yKsp2iXtp8=; b=m0SjHF12d7Memz8sWUcTWvvwy4+qQQLNWY/mNNNQ4MbVnhivJ3chSI62 uM6egYZqRLbqqjQVuE+DviwlNYkR6pqjuo+/CppZRHVdijouIEa6RjiiG JTqV0aXsTO83Ky1euDLADq7sPPRnb6m2L0Gk/CzSbihtCSaz90FSv1o4r 4Vj/thfjHfJOjnfQ5U1d3M/+NwZyMDdT0gT6fxIV/cZ++YWYJbR/9Uoks 6j4lZEYnypokG1WkJAPFdCuY9DCKL3AjrwwnYfztDF7rx1e0gMugQb9Hv 5bDK3gnCp9GnyJYPA6ZzlZd10MflXVbbCL3E97V0/yP9grxiMtUPnZDOx g==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="437825473" X-IronPort-AV: E=Sophos;i="6.01,163,1684825200"; d="scan'208";a="437825473" 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="725933346" X-IronPort-AV: E=Sophos;i="6.01,163,1684825200"; d="scan'208";a="725933346" 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 3/4] i40e: Replace one-element array with flex-array member in struct i40e_section_table Date: Thu, 10 Aug 2023 10:53:01 -0700 Message-Id: <20230810175302.1964182-4-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_section_table 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 6cbc3dbf9b03..8ad878ff02cf 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_type.h +++ b/drivers/net/ethernet/intel/i40e/i40e_type.h @@ -1491,7 +1491,7 @@ struct i40e_profile_segment { struct i40e_section_table { u32 section_count; - u32 section_offset[1]; + u32 section_offset[]; }; struct i40e_profile_section_header { -- 2.38.1