* [PATCH] fix I/O memory related compile caused by wrong Kconfig dependencies
@ 2008-05-21 16:05 Hans-Joachim Picht
2008-05-21 16:21 ` Takashi Iwai
0 siblings, 1 reply; 3+ messages in thread
From: Hans-Joachim Picht @ 2008-05-21 16:05 UTC (permalink / raw)
To: linux-next, Takashi Iwai
On s390 linux-next fails with the following build error:
sound/core/memory.c: In function 'copy_to_user_fromio':
sound/core/memory.c:47: error: implicit declaration of function 'memcpy_fromio'
sound/core/memory.c: In function 'copy_from_user_toio':
sound/core/memory.c:82: error: implicit declaration of function 'memcpy_toio'
The problem was introduced with the following commit
6a5751b42420dce9267d7d915eed8f8673d16fdd ("sound: Convert to menuconfig")
from Takashi's sound-2.6 tree.
Add "depends on HAS_IOMEM" to this menu to make the sound drivers
disappear for s390 which does not have I/O memory.
Signed-off-by: Hans-Joachim Picht <hans@linux.vnet.ibm.com>
diff --git a/sound/Kconfig b/sound/Kconfig
index b625855..51e7f7a 100644
--- a/sound/Kconfig
+++ b/sound/Kconfig
@@ -1,6 +1,8 @@
# sound/Config.in
#
+if HAS_IOMEM
+
menuconfig SOUND
tristate "Sound card support"
help
@@ -99,3 +101,5 @@ config AC97_BUS
should "select" this.
endif # SOUND
+
+endif # HAS_IOMEM
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fix I/O memory related compile caused by wrong Kconfig dependencies
2008-05-21 16:05 [PATCH] fix I/O memory related compile caused by wrong Kconfig dependencies Hans-Joachim Picht
@ 2008-05-21 16:21 ` Takashi Iwai
2008-05-21 21:30 ` Hans-Joachim Picht
0 siblings, 1 reply; 3+ messages in thread
From: Takashi Iwai @ 2008-05-21 16:21 UTC (permalink / raw)
To: Hans-Joachim Picht; +Cc: linux-next
At Wed, 21 May 2008 18:05:23 +0200,
Hans-Joachim Picht wrote:
>
> On s390 linux-next fails with the following build error:
>
> sound/core/memory.c: In function 'copy_to_user_fromio':
> sound/core/memory.c:47: error: implicit declaration of function 'memcpy_fromio'
> sound/core/memory.c: In function 'copy_from_user_toio':
> sound/core/memory.c:82: error: implicit declaration of function 'memcpy_toio'
>
> The problem was introduced with the following commit
> 6a5751b42420dce9267d7d915eed8f8673d16fdd ("sound: Convert to menuconfig")
> from Takashi's sound-2.6 tree.
>
> Add "depends on HAS_IOMEM" to this menu to make the sound drivers
> disappear for s390 which does not have I/O memory.
>
> Signed-off-by: Hans-Joachim Picht <hans@linux.vnet.ibm.com>
Thanks. I prefer "depends on" in menuconfig SOUND so that we need no
extra if-endif block. I added the patch below to sound-2.6 tree.
Does it work for you?
Takashi
---
commit d61ed2f0cd8b026b1e363ea638c75f9ae8e4c982
Author: Takashi Iwai <tiwai@suse.de>
Date: Wed May 21 18:18:01 2008 +0200
sound: Fix dependency on CONFIG_HAS_IOMEM
Hans-Joachim Picht reported the missing dependency on CONFIG_HAS_IOMEM
that cuases a build error on s390.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
diff --git a/sound/Kconfig b/sound/Kconfig
index b625855..a37bee0 100644
--- a/sound/Kconfig
+++ b/sound/Kconfig
@@ -3,6 +3,7 @@
menuconfig SOUND
tristate "Sound card support"
+ depends on HAS_IOMEM
help
If you have a sound card in your computer, i.e. if it can say more
than an occasional beep, say Y. Be sure to have all the information
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fix I/O memory related compile caused by wrong Kconfig dependencies
2008-05-21 16:21 ` Takashi Iwai
@ 2008-05-21 21:30 ` Hans-Joachim Picht
0 siblings, 0 replies; 3+ messages in thread
From: Hans-Joachim Picht @ 2008-05-21 21:30 UTC (permalink / raw)
To: Takashi Iwai; +Cc: linux-next
On Wed, May 21, 2008 at 06:21:29PM +0200, Takashi Iwai wrote:
> At Wed, 21 May 2008 18:05:23 +0200, Hans-Joachim Picht wrote:
> >
> > On s390 linux-next fails with the following build error:
> >
> > sound/core/memory.c: In function 'copy_to_user_fromio':
> > sound/core/memory.c:47: error: implicit declaration of function 'memcpy_fromio'
> > sound/core/memory.c: In function 'copy_from_user_toio':
> > sound/core/memory.c:82: error: implicit declaration of function 'memcpy_toio'
[...]
> Thanks. I prefer "depends on" in menuconfig SOUND so that we need no
> extra if-endif block. I added the patch below to sound-2.6 tree.
> Does it work for you?
Yes, it work for me.
--Hans
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-21 21:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-21 16:05 [PATCH] fix I/O memory related compile caused by wrong Kconfig dependencies Hans-Joachim Picht
2008-05-21 16:21 ` Takashi Iwai
2008-05-21 21:30 ` Hans-Joachim Picht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).