public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] extcon: Remove CONFIG_EXTCON_MODULE config to fix build break
@ 2012-07-12  4:32 Chanwoo Choi
  2012-07-12 15:36 ` Greg KH
  2012-07-12 16:16 ` Mark Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Chanwoo Choi @ 2012-07-12  4:32 UTC (permalink / raw)
  To: gregkh
  Cc: broonie, sameo, myungjoo.ham, kyungmin.park, linux-kernel,
	Chanwoo Choi

This patch modify 'Kconfig' of EXTCON Subsystem to support either
active or inactive of EXTCON Subsystem. The various subsystem refer
to EXTCON subsystem for controlling external connector, so core class
of EXTCON should be included in kernel image. If EXTCON subsystem is
builded with MODULE, other subsystem have build break because of
linking the core class of EXTCON.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/extcon/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig
index 29c5cf8..b0eac45 100644
--- a/drivers/extcon/Kconfig
+++ b/drivers/extcon/Kconfig
@@ -1,5 +1,5 @@
 menuconfig EXTCON
-	tristate "External Connector Class (extcon) support"
+	bool "External Connector Class (extcon) support"
 	help
 	  Say Y here to enable external connector class (extcon) support.
 	  This allows monitoring external connectors by userspace
-- 
1.7.0.4


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

* Re: [PATCH] extcon: Remove CONFIG_EXTCON_MODULE config to fix build break
  2012-07-12  4:32 [PATCH] extcon: Remove CONFIG_EXTCON_MODULE config to fix build break Chanwoo Choi
@ 2012-07-12 15:36 ` Greg KH
  2012-07-12 23:45   ` Chanwoo Choi
  2012-07-12 16:16 ` Mark Brown
  1 sibling, 1 reply; 5+ messages in thread
From: Greg KH @ 2012-07-12 15:36 UTC (permalink / raw)
  To: Chanwoo Choi; +Cc: broonie, sameo, myungjoo.ham, kyungmin.park, linux-kernel

On Thu, Jul 12, 2012 at 01:32:27PM +0900, Chanwoo Choi wrote:
> This patch modify 'Kconfig' of EXTCON Subsystem to support either
> active or inactive of EXTCON Subsystem. The various subsystem refer
> to EXTCON subsystem for controlling external connector, so core class
> of EXTCON should be included in kernel image. If EXTCON subsystem is
> builded with MODULE, other subsystem have build break because of
> linking the core class of EXTCON.

Then something else is wrong, as the extcon_class code should be able to
be built as a module.  Don't load up systems with kernel code that they
don't need (think of distro kernels that have to build everything.)

So no, please fix the real problem here, I will not take this patch,
sorry.

greg k-h

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

* Re: [PATCH] extcon: Remove CONFIG_EXTCON_MODULE config to fix build break
  2012-07-12  4:32 [PATCH] extcon: Remove CONFIG_EXTCON_MODULE config to fix build break Chanwoo Choi
  2012-07-12 15:36 ` Greg KH
@ 2012-07-12 16:16 ` Mark Brown
  2012-07-12 23:46   ` Chanwoo Choi
  1 sibling, 1 reply; 5+ messages in thread
From: Mark Brown @ 2012-07-12 16:16 UTC (permalink / raw)
  To: Chanwoo Choi; +Cc: gregkh, sameo, myungjoo.ham, kyungmin.park, linux-kernel

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

On Thu, Jul 12, 2012 at 01:32:27PM +0900, Chanwoo Choi wrote:
> This patch modify 'Kconfig' of EXTCON Subsystem to support either
> active or inactive of EXTCON Subsystem. The various subsystem refer
> to EXTCON subsystem for controlling external connector, so core class
> of EXTCON should be included in kernel image. If EXTCON subsystem is
> builded with MODULE, other subsystem have build break because of
> linking the core class of EXTCON.

By this logic very little in the kernel should be a module.  We usually
only force things to be built in if there's a technical need for it like
init ordering constraints.  Generally this is just a case of making sure
the Kconfig stuff is set up with appropriate dependencies.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] extcon: Remove CONFIG_EXTCON_MODULE config to fix build break
  2012-07-12 15:36 ` Greg KH
@ 2012-07-12 23:45   ` Chanwoo Choi
  0 siblings, 0 replies; 5+ messages in thread
From: Chanwoo Choi @ 2012-07-12 23:45 UTC (permalink / raw)
  To: Greg KH; +Cc: broonie, sameo, myungjoo.ham, kyungmin.park, linux-kernel

Hi Greg,

On 07/13/2012 12:36 AM, Greg KH wrote:

> On Thu, Jul 12, 2012 at 01:32:27PM +0900, Chanwoo Choi wrote:
>> This patch modify 'Kconfig' of EXTCON Subsystem to support either
>> active or inactive of EXTCON Subsystem. The various subsystem refer
>> to EXTCON subsystem for controlling external connector, so core class
>> of EXTCON should be included in kernel image. If EXTCON subsystem is
>> builded with MODULE, other subsystem have build break because of
>> linking the core class of EXTCON.
> 
> Then something else is wrong, as the extcon_class code should be able to
> be built as a module.  Don't load up systems with kernel code that they
> don't need (think of distro kernels that have to build everything.)
> 
> So no, please fix the real problem here, I will not take this patch,
> sorry.

OK, I will add appropriate dependency to 'Kconfig' of subsystem/driver
using EXTCON
to resolve build break.

Thank you,
Chanwoo Choi

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

* Re: [PATCH] extcon: Remove CONFIG_EXTCON_MODULE config to fix build break
  2012-07-12 16:16 ` Mark Brown
@ 2012-07-12 23:46   ` Chanwoo Choi
  0 siblings, 0 replies; 5+ messages in thread
From: Chanwoo Choi @ 2012-07-12 23:46 UTC (permalink / raw)
  To: Mark Brown; +Cc: gregkh, sameo, myungjoo.ham, kyungmin.park, linux-kernel

On 07/13/2012 01:16 AM, Mark Brown wrote:

> On Thu, Jul 12, 2012 at 01:32:27PM +0900, Chanwoo Choi wrote:
>> This patch modify 'Kconfig' of EXTCON Subsystem to support either
>> active or inactive of EXTCON Subsystem. The various subsystem refer
>> to EXTCON subsystem for controlling external connector, so core class
>> of EXTCON should be included in kernel image. If EXTCON subsystem is
>> builded with MODULE, other subsystem have build break because of
>> linking the core class of EXTCON.
> 
> By this logic very little in the kernel should be a module.  We usually
> only force things to be built in if there's a technical need for it like
> init ordering constraints.  Generally this is just a case of making sure
> the Kconfig stuff is set up with appropriate dependencies.


As you said, I will fix it.

Thank you,
Chanwoo Choi

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

end of thread, other threads:[~2012-07-12 23:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-12  4:32 [PATCH] extcon: Remove CONFIG_EXTCON_MODULE config to fix build break Chanwoo Choi
2012-07-12 15:36 ` Greg KH
2012-07-12 23:45   ` Chanwoo Choi
2012-07-12 16:16 ` Mark Brown
2012-07-12 23:46   ` Chanwoo Choi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox