From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FF6DC433FE for ; Fri, 30 Sep 2022 20:05:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231895AbiI3UFP (ORCPT ); Fri, 30 Sep 2022 16:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbiI3UFN (ORCPT ); Fri, 30 Sep 2022 16:05:13 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73918DD369; Fri, 30 Sep 2022 13:05:11 -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=3wBAxhax4uWBF7eHB1eqflHZ4cetLSZp3Uc2jtSpOag=; b=x3x61AMxA1kRtzrCpZ2242ZDAG 0WlkEYPLDNmJ5oVUPtsBT4y6Sls/ZFbxLwJtC0OM5XIL5EwVfzJQ77XxST6Be81BU7LxKvA45qVO/ KhE+SotUt+7uAZjOqQ8jM+9hPTMKqzDjS3EF5y0Bw1ch9s4ZH1mG7GFkP6784wM7YGcc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oeMFo-000jtR-Kq; Fri, 30 Sep 2022 22:05:00 +0200 Date: Fri, 30 Sep 2022 22:05:00 +0200 From: Andrew Lunn To: Shenwei Wang Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Wei Fang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev Subject: Re: [PATCH 1/1] net: fec: using page pool to manage RX buffers Message-ID: References: <20220930193751.1249054-1-shenwei.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220930193751.1249054-1-shenwei.wang@nxp.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > -static bool fec_enet_copybreak(struct net_device *ndev, struct sk_buff **skb, > - struct bufdesc *bdp, u32 length, bool swap) > +static bool __maybe_unused > +fec_enet_copybreak(struct net_device *ndev, struct sk_buff **skb, > + struct bufdesc *bdp, u32 length, bool swap) > { Why add __maybe_unused? If its not used, remove it. We don't leave dead functions in the code. Andrew