question about samsung/sxgbe/sxgbe_xpcs.c
Subsystems (2)
Hello,
I was windering what is the purpose of the filedrivers/net/ethernet/samsung/sxgbe/sxgbe_xpcs.c
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.
thanks,
julia
2016-01-19 9:26 GMT-07:00 Julia Lawall <[email protected]>:
Quoted 6 lines
Hello,
I was windering what is the purpose of the file
drivers/net/ethernet/samsung/sxgbe/sxgbe_xpcs.cFrom git log and comments, it appears this driver is for
Samsung SoCs.
Quoted 11 lines
I can't find anything that refers to it, and if I remove it from the makefile:
(quoted diff) +1
-1@@ -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)
Quoted 2 lines
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.
thanks,
-- Shuah
Quoted 20 lines · Shuah Khan
2016-01-19 9:26 GMT-07:00 Julia Lawall <[email protected]>:
Quoted 4 lines
Hello,
I was windering what is the purpose of the file
drivers/net/ethernet/samsung/sxgbe/sxgbe_xpcs.cFrom git log and comments, it appears this driver is for Samsung SoCs.
Quoted 11 lines
I can't find anything that refers to it, and if I remove it from the makefile:
(quoted diff) +1
-1@@ -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)
Quoted 5 lines
Quoted 2 lines
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.
Thanks for the explanation.
julia
David Miller
maintainerFrom: Julia Lawall <[email protected]>
Date: Tue, 19 Jan 2016 19:54:20 +0100 (CET)
Quoted 28 lines · Shuah Khan
Quoted 21 lines
2016-01-19 9:26 GMT-07:00 Julia Lawall <[email protected]>:
Quoted 4 lines
Hello,
I was windering what is the purpose of the file
drivers/net/ethernet/samsung/sxgbe/sxgbe_xpcs.cFrom git log and comments, it appears this driver is for Samsung SoCs.
Quoted 11 lines
I can't find anything that refers to it, and if I remove it from the makefile:
(quoted diff) +1
-1@@ -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)Quoted 5 lines
Quoted 2 lines
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.
Quoted 4 lines
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.
From: David Miller <[email protected]>
Date: Tue, 19 Jan 2016 14:36:28 -0500
Quoted 3 lines
From: Julia Lawall <[email protected]>
Date: Tue, 19 Jan 2016 19:54:20 +0100 (CET)
[...]
Quoted 7 lines
Quoted 4 lines
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.
Quoted 8 lines
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.
I have the patch ready.
Do you want me to submit it now during the merge window or wait till net-next opens up again?
Quoted 22 lines · Jεan Sacren
From: David Miller <[email protected]>
Date: Tue, 19 Jan 2016 14:36:28 -0500Quoted 3 lines
From: Julia Lawall <[email protected]>
Date: Tue, 19 Jan 2016 19:54:20 +0100 (CET)[...]
Quoted 14 lines
Quoted 4 lines
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.
Quoted 7 lines
Quoted 1 line
If someone doesn't send me a removal patch, I will remove this code myself.
I have the patch ready.
Do you want me to submit it now during the merge window or wait till net-next opens up again?
My second attempt to locate the author for a comment on this before it gets removed. Maybe this code could be fixed just in case it is important for some product out there.
I am cc'ing the original author in case he has any comments.
thanks,
-- Shuah
Signature · 5 lines
Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) [email protected] | (970) 217-8978
David Miller
maintainerFrom: Shuah Khan <[email protected]>
Date: Thu, 21 Jan 2016 07:04:17 -0700
Quoted 31 lines · Jεan Sacren
Quoted 22 lines
From: David Miller <[email protected]>
Date: Tue, 19 Jan 2016 14:36:28 -0500Quoted 3 lines
From: Julia Lawall <[email protected]>
Date: Tue, 19 Jan 2016 19:54:20 +0100 (CET)[...]
Quoted 14 lines
Quoted 4 lines
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.
Quoted 7 lines
Quoted 1 line
If someone doesn't send me a removal patch, I will remove this code myself.
I have the patch ready.
Do you want me to submit it now during the merge window or wait till net-next opens up again?
Quoted 7 lines
My second attempt to locate the author for a comment on this before it gets removed. Maybe this code could be fixed just in case it is important for some product out there.
I am cc'ing the original author in case he has any comments.
It never should have been added in the first place, I really don't care at all right now what it's used for.
The simple fact is that it isn't used, and therefore must be removed now.
David Miller
maintainerFrom: Jεan Sacren <[email protected]>
Date: Wed, 20 Jan 2016 22:10:56 -0700
Quoted 22 lines
From: David Miller <[email protected]>
Date: Tue, 19 Jan 2016 14:36:28 -0500Quoted 3 lines
From: Julia Lawall <[email protected]>
Date: Tue, 19 Jan 2016 19:54:20 +0100 (CET)[...]
Quoted 14 lines
Quoted 4 lines
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.
Quoted 6 lines
Quoted 1 line
If someone doesn't send me a removal patch, I will remove this code myself.
I have the patch ready.
Do you want me to submit it now during the merge window or wait till net-next opens up again?
This is rediculous.
No, you cannot submit patches for new features now.
Yes, you will submit to me a patch to remove the unused code.
Am I being clear enough now?
From: David Miller <[email protected]>
Date: Thu, 21 Jan 2016 10:45:20 -0800
Quoted 2 lines
Yes, you will submit to me a patch to remove the unused code.
I should have paraphrased it better:
"I have the patch ready and will submit it when net-next opens again."