public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] thinkpad_acpi: fix a build error
@ 2009-12-18  9:28 Amerigo Wang
  2009-12-18  9:42 ` Xiaotian Feng
  0 siblings, 1 reply; 18+ messages in thread
From: Amerigo Wang @ 2009-12-18  9:28 UTC (permalink / raw)
  To: linux-kernel
  Cc: Henrique de Moraes Holschuh, Corentin Chary, ibm-acpi-devel,
	Len Brown, Amerigo Wang, Alan Jenkins, akpm, helight.xu


This patch fixes the following build error:

 Building modules, stage 2.
 MODPOST 1834 modules
ERROR: "snd_card_create" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_notify" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_boolean_mono_info" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_new1" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_card_free" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_card_register" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_add" [drivers/platform/x86/thinkpad_acpi.ko] undefined!

Cc: Len Brown <len.brown@intel.com>
Cc: Corentin Chary <corentincj@iksaif.net>
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Reported-by: Helight.Xu <helight.xu@gmail.com>
Signed-off-by: WANG Cong <amwang@redhat.com>
Tested-by: Helight.Xu <helight.xu@gmail.com>

---
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index fc5bf9d..596966c 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -215,6 +215,7 @@ config THINKPAD_ACPI
 	depends on ACPI
 	depends on INPUT
 	depends on RFKILL || RFKILL = n
+	depends on SOUND
 	select BACKLIGHT_LCD_SUPPORT
 	select BACKLIGHT_CLASS_DEVICE
 	select HWMON

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-18  9:28 [Patch] " Amerigo Wang
@ 2009-12-18  9:42 ` Xiaotian Feng
  2009-12-18 10:15   ` Takashi Iwai
  0 siblings, 1 reply; 18+ messages in thread
From: Xiaotian Feng @ 2009-12-18  9:42 UTC (permalink / raw)
  To: Amerigo Wang
  Cc: linux-kernel, Henrique de Moraes Holschuh, Corentin Chary,
	ibm-acpi-devel, Len Brown, Alan Jenkins, akpm, helight.xu

Ingo already sent this patch yesterday.
http://lkml.org/lkml/2009/12/17/25


On Fri, Dec 18, 2009 at 5:28 PM, Amerigo Wang <amwang@redhat.com> wrote:
>
> This patch fixes the following build error:
>
>  Building modules, stage 2.
>  MODPOST 1834 modules
> ERROR: "snd_card_create" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_ctl_notify" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_ctl_boolean_mono_info" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_ctl_new1" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_card_free" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_card_register" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_ctl_add" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>
> Cc: Len Brown <len.brown@intel.com>
> Cc: Corentin Chary <corentincj@iksaif.net>
> Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
> Cc: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
> Reported-by: Helight.Xu <helight.xu@gmail.com>
> Signed-off-by: WANG Cong <amwang@redhat.com>
> Tested-by: Helight.Xu <helight.xu@gmail.com>
>
> ---
> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
> index fc5bf9d..596966c 100644
> --- a/drivers/platform/x86/Kconfig
> +++ b/drivers/platform/x86/Kconfig
> @@ -215,6 +215,7 @@ config THINKPAD_ACPI
>        depends on ACPI
>        depends on INPUT
>        depends on RFKILL || RFKILL = n
> +       depends on SOUND
>        select BACKLIGHT_LCD_SUPPORT
>        select BACKLIGHT_CLASS_DEVICE
>        select HWMON
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-18  9:42 ` Xiaotian Feng
@ 2009-12-18 10:15   ` Takashi Iwai
  2009-12-18 12:23     ` Helight.Xu
  2009-12-18 14:28     ` Henrique de Moraes Holschuh
  0 siblings, 2 replies; 18+ messages in thread
From: Takashi Iwai @ 2009-12-18 10:15 UTC (permalink / raw)
  To: Xiaotian Feng
  Cc: Amerigo Wang, linux-kernel, Henrique de Moraes Holschuh,
	Corentin Chary, ibm-acpi-devel, Len Brown, Alan Jenkins, akpm,
	helight.xu

At Fri, 18 Dec 2009 17:42:34 +0800,
Xiaotian Feng wrote:
> 
> Ingo already sent this patch yesterday.
> http://lkml.org/lkml/2009/12/17/25
> 
> 
> On Fri, Dec 18, 2009 at 5:28 PM, Amerigo Wang <amwang@redhat.com> wrote:
> >
> > This patch fixes the following build error:
> >
> >  Building modules, stage 2.
> >  MODPOST 1834 modules
> > ERROR: "snd_card_create" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_ctl_notify" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_ctl_boolean_mono_info" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_ctl_new1" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_card_free" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_card_register" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> > ERROR: "snd_ctl_add" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> >
> > Cc: Len Brown <len.brown@intel.com>
> > Cc: Corentin Chary <corentincj@iksaif.net>
> > Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
> > Cc: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
> > Reported-by: Helight.Xu <helight.xu@gmail.com>
> > Signed-off-by: WANG Cong <amwang@redhat.com>
> > Tested-by: Helight.Xu <helight.xu@gmail.com>
> >
> > ---
> > diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
> > index fc5bf9d..596966c 100644
> > --- a/drivers/platform/x86/Kconfig
> > +++ b/drivers/platform/x86/Kconfig
> > @@ -215,6 +215,7 @@ config THINKPAD_ACPI
> >        depends on ACPI
> >        depends on INPUT
> >        depends on RFKILL || RFKILL = n
> > +       depends on SOUND

The patch isn't correct (I guess the upstream fix is same?).

CONFIG_SOUND is a global config for sound subsystem.  The relevant
functions are ALSA core part, which is CONFIG_SND.
So, the fix should be:

	depends on SND

instead.


Takashi

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-18 10:15   ` Takashi Iwai
@ 2009-12-18 12:23     ` Helight.Xu
  2009-12-18 14:28     ` Henrique de Moraes Holschuh
  1 sibling, 0 replies; 18+ messages in thread
From: Helight.Xu @ 2009-12-18 12:23 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Xiaotian Feng, Amerigo Wang, linux-kernel,
	Henrique de Moraes Holschuh, Corentin Chary, ibm-acpi-devel,
	Len Brown, Alan Jenkins, akpm

Takashi Iwai wrote:
> At Fri, 18 Dec 2009 17:42:34 +0800,
> Xiaotian Feng wrote:
>   
>> Ingo already sent this patch yesterday.
>> http://lkml.org/lkml/2009/12/17/25
>>
>>
>> On Fri, Dec 18, 2009 at 5:28 PM, Amerigo Wang <amwang@redhat.com> wrote:
>>     
>>> This patch fixes the following build error:
>>>
>>>  Building modules, stage 2.
>>>  MODPOST 1834 modules
>>> ERROR: "snd_card_create" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_ctl_notify" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_ctl_boolean_mono_info" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_ctl_new1" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_card_free" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_card_register" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>> ERROR: "snd_ctl_add" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>>>
>>> Cc: Len Brown <len.brown@intel.com>
>>> Cc: Corentin Chary <corentincj@iksaif.net>
>>> Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
>>> Cc: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
>>> Reported-by: Helight.Xu <helight.xu@gmail.com>
>>> Signed-off-by: WANG Cong <amwang@redhat.com>
>>> Tested-by: Helight.Xu <helight.xu@gmail.com>
>>>
>>> ---
>>> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
>>> index fc5bf9d..596966c 100644
>>> --- a/drivers/platform/x86/Kconfig
>>> +++ b/drivers/platform/x86/Kconfig
>>> @@ -215,6 +215,7 @@ config THINKPAD_ACPI
>>>        depends on ACPI
>>>        depends on INPUT
>>>        depends on RFKILL || RFKILL = n
>>> +       depends on SOUND
>>>       
>
> The patch isn't correct (I guess the upstream fix is same?).
>
> CONFIG_SOUND is a global config for sound subsystem.  The relevant
> functions are ALSA core part, which is CONFIG_SND.
> So, the fix should be:
>
> 	depends on SND
>   
yes, I think so ! It should be "depends on SND", and I am testing now!
> instead.
>
>
> Takashi
>
>   


-- 
Zhenwen Xu - Seven Helight
Home Page: http://zhwen.org


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

* [PATCH] thinkpad_acpi: fix a build error
@ 2009-12-18 13:23 Helight.Xu
  2009-12-18 13:28 ` Helight.Xu
  0 siblings, 1 reply; 18+ messages in thread
From: Helight.Xu @ 2009-12-18 13:23 UTC (permalink / raw)
  To: ibm-acpi-devel, Américo Wang, linux-kernel

This patch fixes the following build error:

 Building modules, stage 2.
 MODPOST 1834 modules
ERROR: "snd_card_create" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_notify" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_boolean_mono_info" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_new1" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_card_free" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_card_register" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
ERROR: "snd_ctl_add" [drivers/platform/x86/thinkpad_acpi.ko] undefined!



Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: Helight.Xu <helight.xu@gmail.com>
Tested-by: Helight.Xu 
<helight.xu@gmail.com>                                                    
---
 drivers/platform/x86/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index fc5bf9d..cda6fb6 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -215,6 +215,7 @@ config THINKPAD_ACPI
        depends on ACPI
        depends on INPUT
        depends on RFKILL || RFKILL = n
+       depends on SND
        select BACKLIGHT_LCD_SUPPORT
        select BACKLIGHT_CLASS_DEVICE
        select HWMON
-- 
1.6.5.3

-- 
Zhenwen Xu - Seven Helight
Home Page: http://zhwen.org


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

* Re: [PATCH] thinkpad_acpi: fix a build error
  2009-12-18 13:23 [PATCH] thinkpad_acpi: fix a build error Helight.Xu
@ 2009-12-18 13:28 ` Helight.Xu
  0 siblings, 0 replies; 18+ messages in thread
From: Helight.Xu @ 2009-12-18 13:28 UTC (permalink / raw)
  To: ibm-acpi-devel; +Cc: Américo Wang, linux-kernel

Helight.Xu wrote:
> This patch fixes the following build error:
>
> Building modules, stage 2.
> MODPOST 1834 modules
> ERROR: "snd_card_create" [drivers/platform/x86/thinkpad_acpi.ko] 
> undefined!
> ERROR: "snd_ctl_notify" [drivers/platform/x86/thinkpad_acpi.ko] 
> undefined!
> ERROR: "snd_ctl_boolean_mono_info" 
> [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_ctl_new1" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_card_free" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
> ERROR: "snd_card_register" [drivers/platform/x86/thinkpad_acpi.ko] 
> undefined!
> ERROR: "snd_ctl_add" [drivers/platform/x86/thinkpad_acpi.ko] undefined!
>
>
>
> Signed-off-by: WANG Cong <amwang@redhat.com>
> Signed-off-by: Helight.Xu <helight.xu@gmail.com>
> Tested-by: Helight.Xu 
> <helight.xu@gmail.com>                                                    
> ---
> drivers/platform/x86/Kconfig |    1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
> index fc5bf9d..cda6fb6 100644
> --- a/drivers/platform/x86/Kconfig
> +++ b/drivers/platform/x86/Kconfig
> @@ -215,6 +215,7 @@ config THINKPAD_ACPI
>        depends on ACPI
>        depends on INPUT
>        depends on RFKILL || RFKILL = n
> +       depends on SND
>        select BACKLIGHT_LCD_SUPPORT
>        select BACKLIGHT_CLASS_DEVICE
>        select HWMON

It was tested!

-- 
Zhenwen Xu - Seven Helight
Home Page: http://zhwen.org


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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-18 10:15   ` Takashi Iwai
  2009-12-18 12:23     ` Helight.Xu
@ 2009-12-18 14:28     ` Henrique de Moraes Holschuh
  2009-12-18 14:31       ` Takashi Iwai
  2009-12-21 22:38       ` Marcel Holtmann
  1 sibling, 2 replies; 18+ messages in thread
From: Henrique de Moraes Holschuh @ 2009-12-18 14:28 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Xiaotian Feng, Amerigo Wang, linux-kernel, Corentin Chary,
	ibm-acpi-devel, Len Brown, Alan Jenkins, akpm, helight.xu

On Fri, 18 Dec 2009, Takashi Iwai wrote:
> The patch isn't correct (I guess the upstream fix is same?).
> 
> CONFIG_SOUND is a global config for sound subsystem.  The relevant
> functions are ALSA core part, which is CONFIG_SND.
> So, the fix should be:
> 
> 	depends on SND
> 
> instead.

Indeed.  Ingo already fixed that too.

Although I personally would prefer:
select SOUND
select SND

But anything that stops the build errors will do for now.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-18 14:28     ` Henrique de Moraes Holschuh
@ 2009-12-18 14:31       ` Takashi Iwai
  2009-12-18 15:03         ` Henrique de Moraes Holschuh
  2009-12-21 22:38       ` Marcel Holtmann
  1 sibling, 1 reply; 18+ messages in thread
From: Takashi Iwai @ 2009-12-18 14:31 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh
  Cc: Xiaotian Feng, Amerigo Wang, linux-kernel, Corentin Chary,
	ibm-acpi-devel, Len Brown, Alan Jenkins, akpm, helight.xu

At Fri, 18 Dec 2009 12:28:15 -0200,
Henrique de Moraes Holschuh wrote:
> 
> On Fri, 18 Dec 2009, Takashi Iwai wrote:
> > The patch isn't correct (I guess the upstream fix is same?).
> > 
> > CONFIG_SOUND is a global config for sound subsystem.  The relevant
> > functions are ALSA core part, which is CONFIG_SND.
> > So, the fix should be:
> > 
> > 	depends on SND
> > 
> > instead.
> 
> Indeed.  Ingo already fixed that too.
> 
> Although I personally would prefer:
> select SOUND
> select SND

SND already depends on SOUND, so it's just superfluous.


Takashi

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-18 14:31       ` Takashi Iwai
@ 2009-12-18 15:03         ` Henrique de Moraes Holschuh
  2009-12-18 15:10           ` Takashi Iwai
  0 siblings, 1 reply; 18+ messages in thread
From: Henrique de Moraes Holschuh @ 2009-12-18 15:03 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Xiaotian Feng, Amerigo Wang, linux-kernel, Corentin Chary,
	ibm-acpi-devel, Len Brown, Alan Jenkins, akpm, helight.xu

On Fri, 18 Dec 2009, Takashi Iwai wrote:
> At Fri, 18 Dec 2009 12:28:15 -0200,
> Henrique de Moraes Holschuh wrote:
> > On Fri, 18 Dec 2009, Takashi Iwai wrote:
> > > The patch isn't correct (I guess the upstream fix is same?).
> > > 
> > > CONFIG_SOUND is a global config for sound subsystem.  The relevant
> > > functions are ALSA core part, which is CONFIG_SND.
> > > So, the fix should be:
> > > 
> > > 	depends on SND
> > > 
> > > instead.
> > 
> > Indeed.  Ingo already fixed that too.
> > 
> > Although I personally would prefer:
> > select SOUND
> > select SND
> 
> SND already depends on SOUND, so it's just superfluous.

No, it is not (test it).  Which is the main reason why select can be a pain.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-18 15:03         ` Henrique de Moraes Holschuh
@ 2009-12-18 15:10           ` Takashi Iwai
  0 siblings, 0 replies; 18+ messages in thread
From: Takashi Iwai @ 2009-12-18 15:10 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh
  Cc: Xiaotian Feng, Amerigo Wang, linux-kernel, Corentin Chary,
	ibm-acpi-devel, Len Brown, Alan Jenkins, akpm, helight.xu

At Fri, 18 Dec 2009 13:03:24 -0200,
Henrique de Moraes Holschuh wrote:
> 
> On Fri, 18 Dec 2009, Takashi Iwai wrote:
> > At Fri, 18 Dec 2009 12:28:15 -0200,
> > Henrique de Moraes Holschuh wrote:
> > > On Fri, 18 Dec 2009, Takashi Iwai wrote:
> > > > The patch isn't correct (I guess the upstream fix is same?).
> > > > 
> > > > CONFIG_SOUND is a global config for sound subsystem.  The relevant
> > > > functions are ALSA core part, which is CONFIG_SND.
> > > > So, the fix should be:
> > > > 
> > > > 	depends on SND
> > > > 
> > > > instead.
> > > 
> > > Indeed.  Ingo already fixed that too.
> > > 
> > > Although I personally would prefer:
> > > select SOUND
> > > select SND
> > 
> > SND already depends on SOUND, so it's just superfluous.
> 
> No, it is not (test it).  Which is the main reason why select can be a pain.

Ah, OK, it's "select".  Yeah it's a real pain, and should be avoided
in such a case...


Takashi

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-18 14:28     ` Henrique de Moraes Holschuh
  2009-12-18 14:31       ` Takashi Iwai
@ 2009-12-21 22:38       ` Marcel Holtmann
  2009-12-21 22:44         ` Randy Dunlap
  2009-12-22  1:10         ` Helight.Xu
  1 sibling, 2 replies; 18+ messages in thread
From: Marcel Holtmann @ 2009-12-21 22:38 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh
  Cc: Takashi Iwai, Xiaotian Feng, Amerigo Wang, linux-kernel,
	Corentin Chary, ibm-acpi-devel, Len Brown, Alan Jenkins, akpm,
	helight.xu

Hi Henrique,

> > The patch isn't correct (I guess the upstream fix is same?).
> > 
> > CONFIG_SOUND is a global config for sound subsystem.  The relevant
> > functions are ALSA core part, which is CONFIG_SND.
> > So, the fix should be:
> > 
> > 	depends on SND
> > 
> > instead.
> 
> Indeed.  Ingo already fixed that too.
> 
> Although I personally would prefer:
> select SOUND
> select SND
> 
> But anything that stops the build errors will do for now.

I still haven't seen this patch in Linus' tree. And you do need select
SOUND and SND. Otherwise you still get build errors. I have tested this
on my machine. So can someone please submit a proper patch to get this
fixed.

Regards

Marcel



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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-21 22:38       ` Marcel Holtmann
@ 2009-12-21 22:44         ` Randy Dunlap
  2009-12-22 19:38           ` Henrique de Moraes Holschuh
  2009-12-22  1:10         ` Helight.Xu
  1 sibling, 1 reply; 18+ messages in thread
From: Randy Dunlap @ 2009-12-21 22:44 UTC (permalink / raw)
  To: Marcel Holtmann
  Cc: Henrique de Moraes Holschuh, Takashi Iwai, Xiaotian Feng,
	Amerigo Wang, linux-kernel, Corentin Chary, ibm-acpi-devel,
	Len Brown, Alan Jenkins, akpm, helight.xu

On Mon, 21 Dec 2009 14:38:56 -0800 Marcel Holtmann wrote:

> Hi Henrique,
> 
> > > The patch isn't correct (I guess the upstream fix is same?).
> > > 
> > > CONFIG_SOUND is a global config for sound subsystem.  The relevant
> > > functions are ALSA core part, which is CONFIG_SND.
> > > So, the fix should be:
> > > 
> > > 	depends on SND
> > > 
> > > instead.
> > 
> > Indeed.  Ingo already fixed that too.
> > 
> > Although I personally would prefer:
> > select SOUND
> > select SND
> > 
> > But anything that stops the build errors will do for now.
> 
> I still haven't seen this patch in Linus' tree. And you do need select
> SOUND and SND. Otherwise you still get build errors. I have tested this
> on my machine. So can someone please submit a proper patch to get this
> fixed.

Ugh.  Please don't 'select' to build an entire subsystem.

---
~Randy

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-21 22:38       ` Marcel Holtmann
  2009-12-21 22:44         ` Randy Dunlap
@ 2009-12-22  1:10         ` Helight.Xu
  2009-12-22  3:00           ` Marcel Holtmann
  1 sibling, 1 reply; 18+ messages in thread
From: Helight.Xu @ 2009-12-22  1:10 UTC (permalink / raw)
  To: Marcel Holtmann
  Cc: Henrique de Moraes Holschuh, Takashi Iwai, Xiaotian Feng,
	Amerigo Wang, linux-kernel, Corentin Chary, ibm-acpi-devel,
	Len Brown, Alan Jenkins, akpm

Marcel Holtmann wrote:
> Hi Henrique,
>
>   
>>> The patch isn't correct (I guess the upstream fix is same?).
>>>
>>> CONFIG_SOUND is a global config for sound subsystem.  The relevant
>>> functions are ALSA core part, which is CONFIG_SND.
>>> So, the fix should be:
>>>
>>> 	depends on SND
>>>
>>> instead.
>>>       
>> Indeed.  Ingo already fixed that too.
>>
>> Although I personally would prefer:
>> select SOUND
>> select SND
>>
>> But anything that stops the build errors will do for now.
>>     
>
> I still haven't seen this patch in Linus' tree. And you do need select
> SOUND and SND. Otherwise you still get build errors. I have tested this
> on my machine. So can someone please submit a proper patch to get this
> fixed.
>   
I think my first patch about this can fix it!

http://lkml.org/lkml/2009/12/18/141

I have tested it!

> Regards
>
> Marcel
>
>
>
>   


-- 
Zhenwen Xu - Seven Helight
Home Page: http://zhwen.org


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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-22  1:10         ` Helight.Xu
@ 2009-12-22  3:00           ` Marcel Holtmann
  0 siblings, 0 replies; 18+ messages in thread
From: Marcel Holtmann @ 2009-12-22  3:00 UTC (permalink / raw)
  To: Helight.Xu
  Cc: Henrique de Moraes Holschuh, Takashi Iwai, Xiaotian Feng,
	Amerigo Wang, linux-kernel, Corentin Chary, ibm-acpi-devel,
	Len Brown, Alan Jenkins, akpm

Hi Helight,

> >>> The patch isn't correct (I guess the upstream fix is same?).
> >>>
> >>> CONFIG_SOUND is a global config for sound subsystem.  The relevant
> >>> functions are ALSA core part, which is CONFIG_SND.
> >>> So, the fix should be:
> >>>
> >>> 	depends on SND
> >>>
> >>> instead.
> >>>       
> >> Indeed.  Ingo already fixed that too.
> >>
> >> Although I personally would prefer:
> >> select SOUND
> >> select SND
> >>
> >> But anything that stops the build errors will do for now.
> >>     
> >
> > I still haven't seen this patch in Linus' tree. And you do need select
> > SOUND and SND. Otherwise you still get build errors. I have tested this
> > on my machine. So can someone please submit a proper patch to get this
> > fixed.
> >   
> I think my first patch about this can fix it!
> 
> http://lkml.org/lkml/2009/12/18/141
> 
> I have tested it!

either depends on SND or select SND + SOUND, but one of them has to be
pushed into Linus' tree. Personally I don't care which one.

Regards

Marcel



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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-21 22:44         ` Randy Dunlap
@ 2009-12-22 19:38           ` Henrique de Moraes Holschuh
  2009-12-23  6:41             ` Takashi Iwai
  0 siblings, 1 reply; 18+ messages in thread
From: Henrique de Moraes Holschuh @ 2009-12-22 19:38 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: Marcel Holtmann, Takashi Iwai, Xiaotian Feng, Amerigo Wang,
	linux-kernel, Corentin Chary, ibm-acpi-devel, Len Brown,
	Alan Jenkins, akpm, helight.xu

On Mon, 21 Dec 2009, Randy Dunlap wrote:
> On Mon, 21 Dec 2009 14:38:56 -0800 Marcel Holtmann wrote:
> > > > The patch isn't correct (I guess the upstream fix is same?).
> > > > 
> > > > CONFIG_SOUND is a global config for sound subsystem.  The relevant
> > > > functions are ALSA core part, which is CONFIG_SND.
> > > > So, the fix should be:
> > > > 
> > > > 	depends on SND
> > > > 
> > > > instead.
> > > 
> > > Indeed.  Ingo already fixed that too.
> > > 
> > > Although I personally would prefer:
> > > select SOUND
> > > select SND
> > > 
> > > But anything that stops the build errors will do for now.
> > 
> > I still haven't seen this patch in Linus' tree. And you do need select
> > SOUND and SND. Otherwise you still get build errors. I have tested this
> > on my machine. So can someone please submit a proper patch to get this
> > fixed.
> 
> Ugh.  Please don't 'select' to build an entire subsystem.

I won't in this case. I think I will cook up a patch to disable the entire
mixer subsystem in thinkpad-acpi if CONFIG_SND is not available.  I don't
like the depends on SND though.

As for select an entire subsystem, sorry, but I already do that for stuff
like input and backlight.  Depends is a real CRAP for the user interface in
the case of platform drivers like thinkpad-acpi.

If we could get a depends-no-hide thing, that would not cause drivers to
simply disappear from the config interface without a trace, then maybe I
would have no reason for selects.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-22 19:38           ` Henrique de Moraes Holschuh
@ 2009-12-23  6:41             ` Takashi Iwai
  2009-12-24 18:59               ` Henrique de Moraes Holschuh
  0 siblings, 1 reply; 18+ messages in thread
From: Takashi Iwai @ 2009-12-23  6:41 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh
  Cc: Randy Dunlap, Marcel Holtmann, Xiaotian Feng, Amerigo Wang,
	linux-kernel, Corentin Chary, ibm-acpi-devel, Len Brown,
	Alan Jenkins, akpm, helight.xu

At Tue, 22 Dec 2009 17:38:58 -0200,
Henrique de Moraes Holschuh wrote:
> 
> On Mon, 21 Dec 2009, Randy Dunlap wrote:
> > On Mon, 21 Dec 2009 14:38:56 -0800 Marcel Holtmann wrote:
> > > > > The patch isn't correct (I guess the upstream fix is same?).
> > > > > 
> > > > > CONFIG_SOUND is a global config for sound subsystem.  The relevant
> > > > > functions are ALSA core part, which is CONFIG_SND.
> > > > > So, the fix should be:
> > > > > 
> > > > > 	depends on SND
> > > > > 
> > > > > instead.
> > > > 
> > > > Indeed.  Ingo already fixed that too.
> > > > 
> > > > Although I personally would prefer:
> > > > select SOUND
> > > > select SND
> > > > 
> > > > But anything that stops the build errors will do for now.
> > > 
> > > I still haven't seen this patch in Linus' tree. And you do need select
> > > SOUND and SND. Otherwise you still get build errors. I have tested this
> > > on my machine. So can someone please submit a proper patch to get this
> > > fixed.
> > 
> > Ugh.  Please don't 'select' to build an entire subsystem.
> 
> I won't in this case. I think I will cook up a patch to disable the entire
> mixer subsystem in thinkpad-acpi if CONFIG_SND is not available.  I don't
> like the depends on SND though.

That's also not so trivial unless you give any dependency in Kconfig.
Without a restriction, THINKPAD_ACPI=y and SND=m can be chosen.

It'd be also not nice if suddenly a certain functionality disappears
without warning (even if the subsystem is enabled but as a module).


thanks,

Takashi

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-23  6:41             ` Takashi Iwai
@ 2009-12-24 18:59               ` Henrique de Moraes Holschuh
  2009-12-25 11:09                 ` Takashi Iwai
  0 siblings, 1 reply; 18+ messages in thread
From: Henrique de Moraes Holschuh @ 2009-12-24 18:59 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Randy Dunlap, Marcel Holtmann, Xiaotian Feng, Amerigo Wang,
	linux-kernel, Corentin Chary, ibm-acpi-devel, Len Brown,
	Alan Jenkins, akpm, helight.xu

On Wed, 23 Dec 2009, Takashi Iwai wrote:
> At Tue, 22 Dec 2009 17:38:58 -0200,
> Henrique de Moraes Holschuh wrote:
> > I won't in this case. I think I will cook up a patch to disable the entire
> > mixer subsystem in thinkpad-acpi if CONFIG_SND is not available.  I don't
> > like the depends on SND though.
> 
> That's also not so trivial unless you give any dependency in Kconfig.
> Without a restriction, THINKPAD_ACPI=y and SND=m can be chosen.

"depends on SND || SND = n" takes care of the technical restrictions.

I am testing the patch now.  No ALSA, no volume subdriver, module still
works (and prints some crap to syslog so that the user knows the driver
could do more with ALSA support).

> It'd be also not nice if suddenly a certain functionality disappears
> without warning (even if the subsystem is enabled but as a module).

The warning will be there.  Although I don't warn of missing rfkill
functionality if the kernel is missing the rfkill subsystem...

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

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

* Re: [Patch] thinkpad_acpi: fix a build error
  2009-12-24 18:59               ` Henrique de Moraes Holschuh
@ 2009-12-25 11:09                 ` Takashi Iwai
  0 siblings, 0 replies; 18+ messages in thread
From: Takashi Iwai @ 2009-12-25 11:09 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh
  Cc: Randy Dunlap, Marcel Holtmann, Xiaotian Feng, Amerigo Wang,
	linux-kernel, Corentin Chary, ibm-acpi-devel, Len Brown,
	Alan Jenkins, akpm, helight.xu

At Thu, 24 Dec 2009 16:59:12 -0200,
Henrique de Moraes Holschuh wrote:
> 
> On Wed, 23 Dec 2009, Takashi Iwai wrote:
> > At Tue, 22 Dec 2009 17:38:58 -0200,
> > Henrique de Moraes Holschuh wrote:
> > > I won't in this case. I think I will cook up a patch to disable the entire
> > > mixer subsystem in thinkpad-acpi if CONFIG_SND is not available.  I don't
> > > like the depends on SND though.
> > 
> > That's also not so trivial unless you give any dependency in Kconfig.
> > Without a restriction, THINKPAD_ACPI=y and SND=m can be chosen.
> 
> "depends on SND || SND = n" takes care of the technical restrictions.

Yep, that's what I mentioned as Kconfig dependency :)

> I am testing the patch now.  No ALSA, no volume subdriver, module still
> works (and prints some crap to syslog so that the user knows the driver
> could do more with ALSA support).
> 
> > It'd be also not nice if suddenly a certain functionality disappears
> > without warning (even if the subsystem is enabled but as a module).
>
> The warning will be there.  Although I don't warn of missing rfkill
> functionality if the kernel is missing the rfkill subsystem...

The messages could be KERN_INFO instead of KERN_WARNING, I think.


thanks,

Takashi

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

end of thread, other threads:[~2009-12-25 11:09 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-18 13:23 [PATCH] thinkpad_acpi: fix a build error Helight.Xu
2009-12-18 13:28 ` Helight.Xu
  -- strict thread matches above, loose matches on Subject: below --
2009-12-18  9:28 [Patch] " Amerigo Wang
2009-12-18  9:42 ` Xiaotian Feng
2009-12-18 10:15   ` Takashi Iwai
2009-12-18 12:23     ` Helight.Xu
2009-12-18 14:28     ` Henrique de Moraes Holschuh
2009-12-18 14:31       ` Takashi Iwai
2009-12-18 15:03         ` Henrique de Moraes Holschuh
2009-12-18 15:10           ` Takashi Iwai
2009-12-21 22:38       ` Marcel Holtmann
2009-12-21 22:44         ` Randy Dunlap
2009-12-22 19:38           ` Henrique de Moraes Holschuh
2009-12-23  6:41             ` Takashi Iwai
2009-12-24 18:59               ` Henrique de Moraes Holschuh
2009-12-25 11:09                 ` Takashi Iwai
2009-12-22  1:10         ` Helight.Xu
2009-12-22  3:00           ` Marcel Holtmann

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