All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] net: Revert ARCNET and PHYLIB to tristate options
@ 2011-11-24  7:23 Ben Hutchings
  2011-11-25  6:31 ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Hutchings @ 2011-11-24  7:23 UTC (permalink / raw)
  To: David Miller; +Cc: Jeff Kirsher, netdev, Debian kernel maintainers

Commit 88491d8103498a6166f70d5999902fec70924314 ("drivers/net: Kconfig
& Makefile cleanup") changed the type of these options to bool, but
they select code that could (and still can) be built as modules.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
I consider the inability to build arcnet.o and libphy.o as modules to be
a regression in 3.2 for general-purpose distribution kernels.
Therefore, please apply this to the net tree.

Ben.

 drivers/net/arcnet/Kconfig |    2 +-
 drivers/net/phy/Kconfig    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/arcnet/Kconfig b/drivers/net/arcnet/Kconfig
index a73d9dc..84fb634 100644
--- a/drivers/net/arcnet/Kconfig
+++ b/drivers/net/arcnet/Kconfig
@@ -4,7 +4,7 @@
 
 menuconfig ARCNET
 	depends on NETDEVICES && (ISA || PCI || PCMCIA)
-	bool "ARCnet support"
+	tristate "ARCnet support"
 	---help---
 	  If you have a network card of this type, say Y and check out the
 	  (arguably) beautiful poetry in
diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
index bb88e12..a702443 100644
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
@@ -3,7 +3,7 @@
 #
 
 menuconfig PHYLIB
-	bool "PHY Device support and infrastructure"
+	tristate "PHY Device support and infrastructure"
 	depends on !S390
 	depends on NETDEVICES
 	help
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH net] net: Revert ARCNET and PHYLIB to tristate options
  2011-11-24  7:23 [PATCH net] net: Revert ARCNET and PHYLIB to tristate options Ben Hutchings
@ 2011-11-25  6:31 ` David Miller
  2011-11-25 14:07   ` Ben Hutchings
  0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2011-11-25  6:31 UTC (permalink / raw)
  To: ben; +Cc: jeffrey.t.kirsher, netdev, debian-kernel

From: Ben Hutchings <ben@decadent.org.uk>
Date: Thu, 24 Nov 2011 07:23:30 +0000

> Commit 88491d8103498a6166f70d5999902fec70924314 ("drivers/net: Kconfig
> & Makefile cleanup") changed the type of these options to bool, but
> they select code that could (and still can) be built as modules.
> 
> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> ---
> I consider the inability to build arcnet.o and libphy.o as modules to be
> a regression in 3.2 for general-purpose distribution kernels.
> Therefore, please apply this to the net tree.

I challenge you to get PHYLIB set to 'm' in a configuration such as
"allmodconfig" which is clearly in line with the kind of configuration
which "distribution kernels" use.

Did you really even try to see if it mattered?  Or did you just test
your change with a stripped down configuration you happened to have
readily available in some build tree?

I really consider this change entirely pointless, because for the
situation where you say it matters, it actually doesn't as far as I
can tell.

I'm therefore rejecting this patch.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net] net: Revert ARCNET and PHYLIB to tristate options
  2011-11-25  6:31 ` David Miller
@ 2011-11-25 14:07   ` Ben Hutchings
  2011-11-25 18:22     ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Hutchings @ 2011-11-25 14:07 UTC (permalink / raw)
  To: David Miller; +Cc: jeffrey.t.kirsher, netdev, debian-kernel

[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]

On Fri, 2011-11-25 at 01:31 -0500, David Miller wrote:
> From: Ben Hutchings <ben@decadent.org.uk>
> Date: Thu, 24 Nov 2011 07:23:30 +0000
> 
> > Commit 88491d8103498a6166f70d5999902fec70924314 ("drivers/net: Kconfig
> > & Makefile cleanup") changed the type of these options to bool, but
> > they select code that could (and still can) be built as modules.
> > 
> > Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> > ---
> > I consider the inability to build arcnet.o and libphy.o as modules to be
> > a regression in 3.2 for general-purpose distribution kernels.
> > Therefore, please apply this to the net tree.
> 
> I challenge you to get PHYLIB set to 'm' in a configuration such as
> "allmodconfig" which is clearly in line with the kind of configuration
> which "distribution kernels" use.
[...]

Well, I can't think why it would be built in, since PHY modules can be
auto-loaded now.

$ grep PHYLIB /boot/config-2.6.32-5-amd64 
CONFIG_PHYLIB=m
$ grep PHYLIB /boot/config-3.1.0-1-amd64 
CONFIG_PHYLIB=m

Ben.

-- 
Ben Hutchings
Teamwork is essential - it allows you to blame someone else.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net] net: Revert ARCNET and PHYLIB to tristate options
  2011-11-25 14:07   ` Ben Hutchings
@ 2011-11-25 18:22     ` David Miller
  2011-11-25 18:40       ` Ben Hutchings
  0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2011-11-25 18:22 UTC (permalink / raw)
  To: ben; +Cc: jeffrey.t.kirsher, netdev, debian-kernel

From: Ben Hutchings <ben@decadent.org.uk>
Date: Fri, 25 Nov 2011 14:07:51 +0000

> Well, I can't think why it would be built in, since PHY modules can be
> auto-loaded now.

It's because drivers select the thing.

Try allmodconfig for yourself.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net] net: Revert ARCNET and PHYLIB to tristate options
  2011-11-25 18:22     ` David Miller
@ 2011-11-25 18:40       ` Ben Hutchings
  2011-11-25 18:50         ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Hutchings @ 2011-11-25 18:40 UTC (permalink / raw)
  To: David Miller; +Cc: jeffrey.t.kirsher, netdev, debian-kernel

[-- Attachment #1: Type: text/plain, Size: 625 bytes --]

On Fri, 2011-11-25 at 13:22 -0500, David Miller wrote:
> From: Ben Hutchings <ben@decadent.org.uk>
> Date: Fri, 25 Nov 2011 14:07:51 +0000
> 
> > Well, I can't think why it would be built in, since PHY modules can be
> > auto-loaded now.
> 
> It's because drivers select the thing.

Drivers are also built as modules in a distribution kernel.

> Try allmodconfig for yourself.

OK, on x86_64, this does end up with PHYLIB=y but only because
NET_DSA=y.  And I don't believe NET_DSA is appropriate for a distro
kernel.

Ben.

-- 
Ben Hutchings
Teamwork is essential - it allows you to blame someone else.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net] net: Revert ARCNET and PHYLIB to tristate options
  2011-11-25 18:40       ` Ben Hutchings
@ 2011-11-25 18:50         ` David Miller
  2011-11-25 19:37           ` Ben Hutchings
  0 siblings, 1 reply; 8+ messages in thread
From: David Miller @ 2011-11-25 18:50 UTC (permalink / raw)
  To: ben; +Cc: jeffrey.t.kirsher, netdev, debian-kernel

From: Ben Hutchings <ben@decadent.org.uk>
Date: Fri, 25 Nov 2011 18:40:42 +0000

> On Fri, 2011-11-25 at 13:22 -0500, David Miller wrote:
>> Try allmodconfig for yourself.
> 
> OK, on x86_64, this does end up with PHYLIB=y but only because
> NET_DSA=y.  And I don't believe NET_DSA is appropriate for a distro
> kernel.

Do you think we can modularize the NET_DSA reference somehow?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net] net: Revert ARCNET and PHYLIB to tristate options
  2011-11-25 18:50         ` David Miller
@ 2011-11-25 19:37           ` Ben Hutchings
  2011-11-25 20:05             ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Hutchings @ 2011-11-25 19:37 UTC (permalink / raw)
  To: David Miller; +Cc: jeffrey.t.kirsher, netdev, debian-kernel

[-- Attachment #1: Type: text/plain, Size: 746 bytes --]

On Fri, 2011-11-25 at 13:50 -0500, David Miller wrote:
> From: Ben Hutchings <ben@decadent.org.uk>
> Date: Fri, 25 Nov 2011 18:40:42 +0000
> 
> > On Fri, 2011-11-25 at 13:22 -0500, David Miller wrote:
> >> Try allmodconfig for yourself.
> > 
> > OK, on x86_64, this does end up with PHYLIB=y but only because
> > NET_DSA=y.  And I don't believe NET_DSA is appropriate for a distro
> > kernel.
> 
> Do you think we can modularize the NET_DSA reference somehow?

Maybe, but I just don't care about DSA.  It requires platform data to
work, so AFAICS it's only useful in a custom kernel for some platform
that has one of the supported chips.

Ben.

-- 
Ben Hutchings
Teamwork is essential - it allows you to blame someone else.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net] net: Revert ARCNET and PHYLIB to tristate options
  2011-11-25 19:37           ` Ben Hutchings
@ 2011-11-25 20:05             ` David Miller
  0 siblings, 0 replies; 8+ messages in thread
From: David Miller @ 2011-11-25 20:05 UTC (permalink / raw)
  To: ben; +Cc: jeffrey.t.kirsher, netdev, debian-kernel

From: Ben Hutchings <ben@decadent.org.uk>
Date: Fri, 25 Nov 2011 19:37:43 +0000

> On Fri, 2011-11-25 at 13:50 -0500, David Miller wrote:
>> From: Ben Hutchings <ben@decadent.org.uk>
>> Date: Fri, 25 Nov 2011 18:40:42 +0000
>> 
>> > On Fri, 2011-11-25 at 13:22 -0500, David Miller wrote:
>> >> Try allmodconfig for yourself.
>> > 
>> > OK, on x86_64, this does end up with PHYLIB=y but only because
>> > NET_DSA=y.  And I don't believe NET_DSA is appropriate for a distro
>> > kernel.
>> 
>> Do you think we can modularize the NET_DSA reference somehow?
> 
> Maybe, but I just don't care about DSA.  It requires platform data to
> work, so AFAICS it's only useful in a custom kernel for some platform
> that has one of the supported chips.

As far as I understand it, that's not true in the case of device tree,
which can instantiate the platform information dynamically.

And, in any event, having only one specific case force PHYLIB to 'y' is
at best disappointing.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-11-25 20:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-24  7:23 [PATCH net] net: Revert ARCNET and PHYLIB to tristate options Ben Hutchings
2011-11-25  6:31 ` David Miller
2011-11-25 14:07   ` Ben Hutchings
2011-11-25 18:22     ` David Miller
2011-11-25 18:40       ` Ben Hutchings
2011-11-25 18:50         ` David Miller
2011-11-25 19:37           ` Ben Hutchings
2011-11-25 20:05             ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.