Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp557800rwo; Tue, 1 Aug 2023 23:47:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlGWvXhNI1pz68CXT++RpyLDZfJzuV4C4S9Eu/aMqO+WpNbAWdn97oR/vcXtHFK9T8eW8TG7 X-Received: by 2002:a17:902:a405:b0:1bb:b86e:8d6d with SMTP id p5-20020a170902a40500b001bbb86e8d6dmr12646744plq.29.1690958857470; Tue, 01 Aug 2023 23:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690958857; cv=none; d=google.com; s=arc-20160816; b=HEvEJ4O4VrNOmtXRlwW/6K3kMDVF/e81qVNqiyEo9oepsKOCF+Xz4D80ObnGXP8mUQ XEuDub9R8XKPghlAFwFtmUdLcXFiDYVYCoo/jFCZOIKjGIw+v3ZPE6uCIu3Q+Jd95QwH 4VHwgJ5RLINMcp0Q5/9lEiDna7EN6j7loLYG1cHNf/C9tclWOteNMBU3YdHEYnZMGKX0 UWXEZf5fKY7NbDvVcEAmdqgIUdziAAq5iL1HkT1xQDihPFH8tXr7+yG9M6/iGAiKgepD EJNOROSM1AvuXuibpCcn1keey6zwdICcBB3/FAI/7U7z/YJcfJ+x4W8ESuYK7tj20K7d oh/g== 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=pcqvn7KrGwtsXqh6yH5QHbwrgV/PyF8NBQKwzaw/5kk=; fh=Ld4bEJMliET3pg5SF4t5/bzEu7hB0dttY59G24FXQc0=; b=EPjszrdo2EPL5hnKil7r88Sae1xv9KSlQcBg9pMlfTZ5e35r20DYXBlAxCBMi+QIUg eOtHQrw5O3oIGaygs0W1gbhgo8MVumzi8YeLzHmkGWjbu8dm/+Ln1V0q3Dc1ossoUxS0 FLhP0Z7+KZ8nsyDxCNuATnSbdq8V+pQueYWRLn+eWRAbuClWlB2psa8l27CehMJLro8M WWgKd/4J1MZMVj7DtvJThcGuQDOkZp5E9bnzAjWP3yc/MImRfYDrXoiEzFN22mq59pMo NpJtc1zStGvlN1Fq0IbNrt/OgHryUCbVUG1cqeaqgnxGp68GFv/eXXDjF+LQ4ZmlUXCU nU2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=o9z225Vu; 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 ky12-20020a170902f98c00b001bbb8a65e87si9349717plb.59.2023.08.01.23.47.24; Tue, 01 Aug 2023 23:47:37 -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=o9z225Vu; 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 S231449AbjHBFFY (ORCPT + 99 others); Wed, 2 Aug 2023 01:05:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232184AbjHBFFP (ORCPT ); Wed, 2 Aug 2023 01:05:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DB4E273A; Tue, 1 Aug 2023 22:04:56 -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 D21AA617C2; Wed, 2 Aug 2023 05:04:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26A01C433C8; Wed, 2 Aug 2023 05:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690952695; bh=20F4xPeEvNj9IuAftI9KVAMz4n8aQOzO8rp3P7fmGNc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o9z225Vuo0O0cdGOCNgMKn+dvOU5eE4KM84og9IwU8gxi8fE1GdcLi226AenlSZDC vyN968CCLHAicKjG2npw9QyTqf5V/7QZu14QhJGEr4DkIVbWKR7qYIecWtVJzw1T7W EnZjm9vb2bb4d/bdiRASxZ05afIqPnbs8yXhC0nYM0Bqua4+iLDZ9cA8LvkqcX7Vsn nvgxRUpo8d1lo4C+hmsSlHKapcKTwO2CsB0UjWlgs+UD3Vz5T/i3qPzZGITD2F2V4M J9k1qrzUxWHpKqpbPVEyzMjyozTZzMyYntlUSlqJqOkJYXnhkJgBP5a4azkS2YzVeZ YeliueNUPZC5Q== Date: Tue, 1 Aug 2023 23:05:59 -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 2/4][next] i40e: Replace one-element array with flex-array member in struct i40e_profile_segment Message-ID: <52da391229a45fe3dbd5c43167cdb0701a17a361.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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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_segment 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 c3d5fe12059a..f7a984304b65 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_type.h +++ b/drivers/net/ethernet/intel/i40e/i40e_type.h @@ -1487,7 +1487,7 @@ struct i40e_profile_segment { struct i40e_ddp_version version; char name[I40E_DDP_NAME_SIZE]; u32 device_table_count; - struct i40e_device_id_entry device_table[1]; + struct i40e_device_id_entry device_table[]; }; struct i40e_section_table { -- 2.34.1