Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp494132rwo; Tue, 1 Aug 2023 22:20:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlEqUiVPhm9bAUe59PzG8k8MYZNkrUnM4aMw8BWABF0RWpVZ+wTng9kbjo3hGYEl7OdXcN73 X-Received: by 2002:a17:906:153:b0:99b:48d3:5488 with SMTP id 19-20020a170906015300b0099b48d35488mr4047613ejh.24.1690953645063; Tue, 01 Aug 2023 22:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690953645; cv=none; d=google.com; s=arc-20160816; b=LnFOoK0B+ep2cNvQD2Z4BTVk7X4gc8QoiadsGnuBeY37YedoraVWaOZrrcdIcSsz38 UOdSeP7RGxWeZTpCmjMrz84j7V5atcZP31bHhyM2sZKLDlYFtYjN1DrOV13ZUwgMx5bO bxiyh5hRBhtqty0J47UO8GhYBmrqwku+OkQZgvDlG2KT/O5ojtSZtSVuaPjH/VAS2EiO Q64KCChvKOgdOI7YKcXRnsHxQSWofGn8o8mrU7R3v2BZDPTkuQGj/CPO5mJ7JcU3dxp/ AOzkHyAEODduZr5dWnHOC/kd/0BcWiwZO9cb9pX/dmoOIDmJRATHao2w7P4NwgO+B7Q/ N1yQ== 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=/6pyNE991xmWeFXyGzcUu6WcZcIKikA21VZFJiVKjCE=; fh=Ld4bEJMliET3pg5SF4t5/bzEu7hB0dttY59G24FXQc0=; b=lOjVKshBKjPeeO5A8vR/iqUrzQnpTczIBI7wFDNMx0f5gG6sFxwvYsDqF30tDIpxnV 8KRdQVIPbfd55tuFNmj69a7HePdjmIFnaXV6HhBLZBZa0c1ZJaKRBIfiGtAqWcoQpEY8 0N4/Kqb7OwCo23fdCyNZQzbEPZum5df+SMfy3IUBBfXGOLaDtHGTm2iThYjyzVi7WqUS cvZzQ5hBHnLaAI3KYgUz+i5Tvj1WdBDuLCZLQfsVuB1Et1gLxaHDRI7fX+Mnb1NL13CV dpmGgZG0ds0BvyJP1rkA6+YIpHPYPc67kppc6wJfMZXV0ArSlLZmQS9VwDRymEjUriWf /o6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aVODpFlG; 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 t25-20020a1709066bd900b009938899a3besi8732608ejs.211.2023.08.01.22.20.20; Tue, 01 Aug 2023 22:20:45 -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=aVODpFlG; 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 S231985AbjHBFFe (ORCPT + 99 others); Wed, 2 Aug 2023 01:05:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232218AbjHBFF2 (ORCPT ); Wed, 2 Aug 2023 01:05:28 -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 5134A1FCF; Tue, 1 Aug 2023 22:05:27 -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 D24F3617E2; Wed, 2 Aug 2023 05:05:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14365C433CA; Wed, 2 Aug 2023 05:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690952726; bh=mqqkGVbU/w5XVGL8wNFiKBrpnoFsZ0U7xfNm17f7El4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aVODpFlGBTgJf/7xxXR6C30T6BZmJoEN3+kRYa79kTII0nnf6ub3clATPGufXTnTE P1eFFL1msnaqiFvcfvjhfbIWovhU1tqPpSdnflkPghhkn2lh+hZ5ZVoaHo2VaQypDj xV+96UEjZDU4q2/giYSW3dfh9wWNayYZcKuYJ63+9jB0uKPZfoy3MyJkKN7gxkmCO0 55jVCANF0xJbgIXgoULvPYhOrsgUFYs10dSKWJ46Pm6V3nVYy/aB/0YZ8yNl8Isl/v AEa+nwN887eWcZeTNlqhP7f9DUeSP+L1HcCFO/w3mQm7W43LY4naJJaRTzU9eZdGCu sWK96H0/eRzpQ== Date: Tue, 1 Aug 2023 23:06:30 -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 3/4][next] i40e: Replace one-element array with flex-array member in struct i40e_section_table Message-ID: 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_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 --- 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 f7a984304b65..010261a10f56 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_type.h +++ b/drivers/net/ethernet/intel/i40e/i40e_type.h @@ -1492,7 +1492,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.34.1