Received: by 2002:ac8:5491:0:b0:40f:fb00:664b with SMTP id h17csp629548qtq; Thu, 10 Aug 2023 11:02:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxPXaZkLu8Yf9lcsRyVbr62rsCQCoO8whSjKx/me9IJsQ5NHI7VfnMSqmTh6/XIIdTcf0b X-Received: by 2002:a17:902:ec90:b0:1bb:c896:1d91 with SMTP id x16-20020a170902ec9000b001bbc8961d91mr3285177plg.31.1691690537316; Thu, 10 Aug 2023 11:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691690537; cv=none; d=google.com; s=arc-20160816; b=OAaZ84C4HgbYRb3pL5nZ74kLmpuFZrKQ7YeBKYiYPO4A1ZRxiLPEZQujhkTur+rkck G0sdoBSdmoqAiUfWRZ7arq9xULfmedf6kj56T3GfF0jbGnDci+eEAdP8BeeHHVykhXf5 vyV9SmMQfw9Yt30oIzRtg06+vgCudqdRM5VJ79ohIgrNQGclicBhy3k/VLujo1jctJp7 UYcvcefPmKuFXAowfBFqf8LmePTgAtmjVWUkwCHJ3qGc93bKtHxLXavcytYcwq635/rT YrB4S4yYCDYfy33H0GUEjNXHEmm0x6mj227RRuE0KE6+eBV7Pf5GJSlf+ljqCFwx//LN 6bQQ== 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=GdV4iR1xxtboZs5FQPuJUZtXcGLHtIDsoRCRiJm05c4=; fh=IYkX4iPiWMN9ChsHpYhMuk5eLcPnqh4LhpSQMDyPNRI=; b=hBL7qs5ibyMWlowv28uZ+Fq43bp/BlzzOu0BsoJh41TmPhTeRQFHZjEdbEki6YQLWW cSZ/TFFz50j3vM2+TWWjHKkUf8BO4cGYJomR1Ezy3cWDTxC5AX9fFlc7HqEC3EKgBDKh dYKkD3lN8pNY6xQiHlGSDj6wSyH0nIlx8VB5T6wexO59PqGZ2rRxF6uMz2S3ezS+NnRK 8Rym2kkQS2n6rSuFrumTA+w07O4arH/id0r1U01IboicJ0a+qGCDVVBUg2ybzKTHm2xq BahPGvIVjMuB61VJtxvs8hSwiC/Q4hyXl8FfE+7R9fXB9gCoYQuw/pt6uBA94r9t2G+r TZsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=f49m7e0f; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l29-20020a63701d000000b00564bea180dbsi1961754pgc.181.2023.08.10.11.02.03; Thu, 10 Aug 2023 11:02:17 -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=@google.com header.s=20221208 header.b=f49m7e0f; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234714AbjHJReJ (ORCPT + 99 others); Thu, 10 Aug 2023 13:34:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231330AbjHJReI (ORCPT ); Thu, 10 Aug 2023 13:34:08 -0400 Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B5C2705 for ; Thu, 10 Aug 2023 10:34:08 -0700 (PDT) Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-7918997ad9fso15965839f.1 for ; Thu, 10 Aug 2023 10:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691688847; x=1692293647; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=GdV4iR1xxtboZs5FQPuJUZtXcGLHtIDsoRCRiJm05c4=; b=f49m7e0fTpMvMzTJELh+6sHJ1ejSFDxI40Hzkiwl3GIxcq/hxl/PROqKNx//p59fGK pB6pv72ip3SU34UFbF4JTU1fUHt+t/ecMn+3dXUwoPjoTg+hhoNRqsE+q+F9PzLsOWih Eug9n5HfoEAkeL3oP9HcAWidpQzyXF3r3BjPr1kJtYmDv9gJXfZYNpJ69K4NBlV26aTb 47DUVLNEHv9xIzbXdB7wZzHLYiz2AwWEYlB6BL3hiBmZbHckPxQo4gZG6oYYulEFDQfz UIIzRB88jqmCOW7O4bx64FM7jd8t3u6dYQ1HRCNl2FCf+wOJHkdrHYp+O0bGDjrAFUEf Of3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691688847; x=1692293647; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GdV4iR1xxtboZs5FQPuJUZtXcGLHtIDsoRCRiJm05c4=; b=C4L/it0jS0WhDSwo0osMnhEdnzkn9q3t1MZIRchMuQFGM+XDvcDev59+jDiIRHW2QJ hzJz2/lJovrOB7n0htVMBid2pSlXblBWK6GPSx9NsLDAlYQnMcp8wTmVTA0lDwRhLyaV My8Xm3qXDebIgvsoSDBz+yQvXMMNZYrcj3YJCE/RuwtxEk/VmQhITONj6N4A3bEe+TCZ Ew5hOwIf5uFrMCv5QPdCYcKz6JPvhD47nwBcqKuOYV1dE0QEn3D+DTJ+7+8P8emgssQA FNObwUU+S9N9ciwkjgnDTq6xq7zIuObfi9oBN+Jg5ohPLQwjVsa90fi1JSgP3BWQAIgg jOuA== X-Gm-Message-State: AOJu0YwR7DkBk1y46jLUSE3Wv58D60NhFdXWrKob4GkPFKH0g0FWQTIH zEAKvy7tUg/JZxYbuJLYfjvAWw== X-Received: by 2002:a05:6e02:1baf:b0:349:46fa:3844 with SMTP id n15-20020a056e021baf00b0034946fa3844mr2889307ili.3.1691688847549; Thu, 10 Aug 2023 10:34:07 -0700 (PDT) Received: from google.com (161.74.123.34.bc.googleusercontent.com. [34.123.74.161]) by smtp.gmail.com with ESMTPSA id l17-20020a92d8d1000000b00345d2845c42sm566851ilo.57.2023.08.10.10.34.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 10:34:06 -0700 (PDT) Date: Thu, 10 Aug 2023 17:34:04 +0000 From: Justin Stitt To: "Gustavo A. R. Silva" Cc: Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH 2/4][next] i40e: Replace one-element array with flex-array member in struct i40e_profile_segment Message-ID: <20230810173404.jjuvqo5tv57en7pg@google.com> References: <52da391229a45fe3dbd5c43167cdb0701a17a361.1690938732.git.gustavoars@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52da391229a45fe3dbd5c43167cdb0701a17a361.1690938732.git.gustavoars@kernel.org> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,FSL_HELO_FAKE,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 On Tue, Aug 01, 2023 at 11:05:59PM -0600, Gustavo A. R. Silva wrote: > 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(-) Tested-by: Justin Stitt > > 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 >