Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp96397rwr; Tue, 2 May 2023 16:39:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7heIi+A+3+TDwW2m3XmuLjphmn1067CYvJOGX7ZlqKDfvooiJjS1iadiLJndaowc04uKk8 X-Received: by 2002:a17:903:24c:b0:1a9:8d57:6d6c with SMTP id j12-20020a170903024c00b001a98d576d6cmr251341plh.24.1683070779316; Tue, 02 May 2023 16:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683070779; cv=none; d=google.com; s=arc-20160816; b=jI0pRTM3zXe74cqIXQAiR599uoAyw1+5gOuy6pn16aDaHa9ITcORKic1lTuiWTwC4F Qd25F7BEBxGiRcFMzuHN4tmCFqKF+cyMZ3fQH95ah5TKIFa6vNF9+ycW+RunH/J2vNVV BZ5iKkRWz7o3ki5sKszK2qbbCMoQWdvAKA8e5uB663r25dznKi60PcGx7+Omtgb/gTyL 4+azwKdYZUro5zyJWvbnUovcgdaeh20Bhvj2G9dvBplaKmG+60qbp81biRsYtxdWrEk8 fJQX0pz/eEMmON0ss58+8rr8IDDrBfnZ4rB0kbouW4m3ZtcTSWggrmjAMQrpMhMwFs+a 7TBw== 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=2l5Uv2F7D/BM238Fz1afWDTU9gd8SlLHR7GBsDFXHNE=; b=tfXxSeqfhFTJHjf4lDS2R7cs6PKNHMOabm1wJ/HE4e+HXQHS8bUMjsIqP5RuYMHbUO qHsdDfX1VbaLts8DT7++232PJ1XqUn823twvLug4vOfXgNl8a5TNPgUXoW8NSXVGHO/K 4ssyiitiAg/brp9FoxKLetWttp+DjP+oAw+quUdJ/tFCP5V410eUHQ5FX/jo3kDnnR5P yeUHFkTT41DluIreXS3QBSvluYz45ULAZvZu3AqmqgavJ5XbqrEAxfmMbZs7iutERZlX VjcxxVxnh5o69H2humNpHFiNg7WPMvvJ3imBvMI+HAqf0ZBlzw7EuuhSHNLCwlb4kjMU NhOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ua8uarLF; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a17090301c600b001a644fba6d8si33510712plh.86.2023.05.02.16.39.24; Tue, 02 May 2023 16:39:39 -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=@lunn.ch header.s=20171124 header.b=ua8uarLF; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbjEBXS7 (ORCPT + 99 others); Tue, 2 May 2023 19:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjEBXS6 (ORCPT ); Tue, 2 May 2023 19:18:58 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B78952128; Tue, 2 May 2023 16:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=2l5Uv2F7D/BM238Fz1afWDTU9gd8SlLHR7GBsDFXHNE=; b=ua8uarLFqpT95yGaNxhsDrN2JU QFWtZOol6DrBowgnIS3dd8eKz7LG4JvB1lhRFBmTqffhCcvDpiMcpsuqawuIRJnDd5/s0LQgIB//a plFw9s8e8QFQl2QGajvptVWH8abV36oJwIyjecgR4M8SUas4JkWogD8w1SK6NVO1qnJ0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ptzGY-00Blwb-VN; Wed, 03 May 2023 01:18:38 +0200 Date: Wed, 3 May 2023 01:18:38 +0200 From: Andrew Lunn To: Shenwei Wang Cc: Wei Fang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Clark Wang , NXP Linux Team , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Alexander Lobakin , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: Re: [PATCH v2 net 2/2] net: fec: restructuring the functions to avoid forward declarations Message-ID: <6dff0a5b-c74b-4516-8461-26fcd5d615f3@lunn.ch> References: <20230502220818.691444-1-shenwei.wang@nxp.com> <20230502220818.691444-2-shenwei.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230502220818.691444-2-shenwei.wang@nxp.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 On Tue, May 02, 2023 at 05:08:18PM -0500, Shenwei Wang wrote: > The patch reorganizes functions related to XDP frame transmission, moving > them above the fec_enet_run_xdp implementation. This eliminates the need > for forward declarations of these functions. I'm confused. Are these two patches in the wrong order? The reason that i asked you to fix the forward declaration in net-next is that it makes your fix two patches. Sometimes that is not obvious to people back porting patches, and one gets lost, causing build problems. So it is better to have a single patch which is maybe not 100% best practice merged to stable, and then a cleanup patch merged to the head of development. Andrew