Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6389281rwb; Mon, 12 Dec 2022 00:52:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jS7t1vGqfEb8GRmSLUQOAAkpaTZ6J454pa5r/VSq1Sqe8en5GulVNHgr6mBkz9DEfMgMR X-Received: by 2002:a62:e50e:0:b0:574:9e66:1bce with SMTP id n14-20020a62e50e000000b005749e661bcemr13997808pff.5.1670835165320; Mon, 12 Dec 2022 00:52:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670835165; cv=none; d=google.com; s=arc-20160816; b=JRwHbcuOEZz11b93weM7Cq2hOHMFZr6gzEZnlnhk2NiaG9L1sqfjM2WmxzrDYQULPe XZeJjxrVTt42LAbPc0fUbGZsqSoz0j5UMuGFlXIwiVza5WIhHjmyLQNoDIgfETVTa72D HtZfd6Jl3qcu/2K0LAo0WmtPXv4hrhwTBgt/PiH34jW+XBfllkseXqpxOXMtWZ1jcnP+ YRzVgDDLI0+9+KcEq4LxrjgKEJFFtAploFf8Vjdlfgvmecov8VnfGDaMOyXvCudfQZP0 XSczom94whs/VrthI+LUe/gtDrmmu5rfkOqq2AO0fhnLsCFxicMUMm6O2Askw0UVX6H7 Izlw== 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=EBJg5jAcrKolx02Rg+o6fRtszO5Zhkhlpk7Ulav15p0=; b=wQjs8mRmTws9Iz56AWQVKjl7jUtGdrL15PTFoOSp7/PahGyv7dx9diFcb2SYl3hi0m rZali7MZn309J/bnUj9aBEChyKvjrw7OuQBWWsVP/klrh+70LhjvdkqOnZNJtDUOAmYl UtsHCIs9WIasO2j39VTmnII2+NYF47Y2oYbUAKzE8+EZkkEJwMozRC5dlCh9w6N8W7om cbXAhWbsZaZCD/ozhkWyNCr/l6jCbOvqRuvwdgWxuMKtGQ6y3GdoBvrIfVZgB5hsrSPp FaIUy/yWI+WLpGv090N5oBdwCPGNFrRg8NrF3UxqF4ukwdSDyz6nR3vGRm5ICPjwsBD5 dLDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iQcLCJ7a; 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 h10-20020a056a00000a00b0056771c032f4si8276604pfk.28.2022.12.12.00.52.34; Mon, 12 Dec 2022 00:52:45 -0800 (PST) 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=iQcLCJ7a; 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 S231405AbiLLImF (ORCPT + 76 others); Mon, 12 Dec 2022 03:42:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbiLLImC (ORCPT ); Mon, 12 Dec 2022 03:42:02 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A015EC779; Mon, 12 Dec 2022 00:42:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 558D1B80BA7; Mon, 12 Dec 2022 08:42:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38D89C433EF; Mon, 12 Dec 2022 08:41:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670834519; bh=bp9hj0RVByKQktcC0dW/qzUFrg5xq9JprWMyU7tTG14=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iQcLCJ7aZQwe9+6zjZl79n61zWOtEzrvlyRFS1IxQ0qOhRvjjHH4mhH5YEbUQqiPB WT4Y1hJABUHLJW2mUZ7fSej1hdbKx4jtK++PEaBOUoMIvedc/WJ/FavPwfaInmpgDa lKwGagt0HpwSXYINnsdB7CP4dhu48s8V0BaS8KKTLckjse2E1WCS28BTsVZ6f2MH6g xU7+bfVfkWm57KxjxqX94YqiU2GmN8zJGy8rkV9b17a7baqd8Ob1ON5Adh/zsweIno k78qYH/dihM4JAKwwh+aWTPbNKd3HbE043YdYhVoK3PPR9Q5LC4JmXIqnk48/vkSmU R57tb+YXlX7lg== Date: Mon, 12 Dec 2022 10:41:54 +0200 From: Leon Romanovsky To: Jiapeng Chong Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, sumit.semwal@linaro.org, christian.koenig@amd.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Abaci Robot Subject: Re: [PATCH] net: ksz884x: Remove the unused function port_cfg_force_flow_ctrl() Message-ID: References: <20221212035309.33507-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221212035309.33507-1-jiapeng.chong@linux.alibaba.com> 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 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 Mon, Dec 12, 2022 at 11:53:09AM +0800, Jiapeng Chong wrote: > The function port_cfg_force_flow_ctrl() is defined in the ksz884x.c file, > but not called elsewhere, so remove this unused function. > > drivers/net/ethernet/micrel/ksz884x.c:2212:20: warning: unused function 'port_cfg_force_flow_ctrl'. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3418 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/net/ethernet/micrel/ksz884x.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c > index e6acd1e7b263..46f1fbf58b5a 100644 > --- a/drivers/net/ethernet/micrel/ksz884x.c > +++ b/drivers/net/ethernet/micrel/ksz884x.c > @@ -2209,12 +2209,6 @@ static inline void port_cfg_back_pressure(struct ksz_hw *hw, int p, int set) > KS8842_PORT_CTRL_2_OFFSET, PORT_BACK_PRESSURE, set); > } > > -static inline void port_cfg_force_flow_ctrl(struct ksz_hw *hw, int p, int set) > -{ > - port_cfg(hw, p, > - KS8842_PORT_CTRL_2_OFFSET, PORT_FORCE_FLOW_CTRL, set); > -} > - > static inline int port_chk_back_pressure(struct ksz_hw *hw, int p) This function is not called too. Many functions in that file can be removed. Please do it in one patch. Thanks > { > return port_chk(hw, p, > -- > 2.20.1.7.g153144c >