From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933120AbcASTgr (ORCPT ); Tue, 19 Jan 2016 14:36:47 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:54251 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932981AbcASTgb (ORCPT ); Tue, 19 Jan 2016 14:36:31 -0500 Date: Tue, 19 Jan 2016 14:36:28 -0500 (EST) Message-Id: <20160119.143628.432983847877790677.davem@davemloft.net> To: julia.lawall@lip6.fr Cc: shuahkhan@gmail.com, bh74.an@samsung.com, ks.giri@samsung.com, vipul.pandya@samsung.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, shuahkh@osg.samsung.com Subject: Re: question about samsung/sxgbe/sxgbe_xpcs.c From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 19 Jan 2016 11:36:30 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Julia Lawall Date: Tue, 19 Jan 2016 19:54:20 +0100 (CET) > On Tue, 19 Jan 2016, Shuah Khan wrote: > >> 2016-01-19 9:26 GMT-07:00 Julia Lawall : >> > Hello, >> > >> > I was windering what is the purpose of the file >> > drivers/net/ethernet/samsung/sxgbe/sxgbe_xpcs.c >> >> From git log and comments, it appears this driver is for >> Samsung SoCs. >> >> > >> > I can't find anything that refers to it, and if I remove it from the >> > makefile: >> > >> > @@ -1,4 +1,4 @@ >> > obj-$(CONFIG_SXGBE_ETH) += samsung-sxgbe.o >> > samsung-sxgbe-objs:= sxgbe_platform.o sxgbe_main.o sxgbe_desc.o \ >> > sxgbe_dma.o sxgbe_core.o sxgbe_mtl.o sxgbe_mdio.o \ >> > - sxgbe_ethtool.o sxgbe_xpcs.o $(samsung-sxgbe-y) >> > + sxgbe_ethtool.o $(samsung-sxgbe-y) >> > >> > and then make clean and recompile, I see no bad effect. >> > >> >> What is the motivation for the experiment to remove it? >> This file probably gets used only on Samsung SoCs. > > I just wondered. I was looking at dependencies between networking files. > This one stands out because nothing is dependenton it, even the files it > is compiled with, and it doesn't contain the usual functions, > register_netdev, etc. Even with that explanation, this is a bogus situation. There are no in-tree callers of this code. It should be removed until there are in-tree users. Nobody can figure out if the interface for this is done properly without seeing the call sites and how they work. It is therefore impossible to review this code and judge it's design. If someone doesn't send me a removal patch, I will remove this code myself.