From: Olaf Hering <olh@suse.de>
To: Andrew Morton <akpm@osdl.org>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Subject: [PATCH] snd_powermac depends on pmac specific config options
Date: Sat, 22 Oct 2005 21:55:52 +0200 [thread overview]
Message-ID: <20051022195552.GA3607@suse.de> (raw)
In-Reply-To: <20051022194626.GA3496@suse.de>
snd_powermac should depend on pmac specific .config options.
Since PMAC is always defined, but PMAC wont boot without either
CUDA or PMU, one of these options indicates that the kernel is
for a PowerMac.
CONFIG_PM can be selected unconditionally.
sound/ppc/pmac.c:1380: warning: `struct pmu_sleep_notifier' declared inside parameter list
sound/ppc/pmac.c:1380: warning: its scope is only this definition or declaration, which is probably not what you want
sound/ppc/pmac.c: In function `snd_pmac_sleep_notify':
sound/ppc/pmac.c:1388: error: `PBOOK_SLEEP_NOW' undeclared (first use in this function)
sound/ppc/pmac.c:1388: error: (Each undeclared identifier is reported only once
sound/ppc/pmac.c:1388: error: for each function it appears in.)
sound/ppc/pmac.c:1391: error: `PBOOK_WAKE' undeclared (first use in this function)
sound/ppc/pmac.c:1395: error: `PBOOK_SLEEP_OK' undeclared (first use in this function)
sound/ppc/pmac.c: At top level:
sound/ppc/pmac.c:1398: error: variable `snd_pmac_sleep_notifier' has initializer but incomplete type
sound/ppc/pmac.c:1399: warning: excess elements in struct initializer
sound/ppc/pmac.c:1399: warning: (near initialization for `snd_pmac_sleep_notifier')
sound/ppc/pmac.c:1399: error: `SLEEP_LEVEL_SOUND' undeclared here (not in a function)
sound/ppc/pmac.c:1399: warning: excess elements in struct initializer
sound/ppc/pmac.c:1399: warning: (near initialization for `snd_pmac_sleep_notifier')
sound/ppc/pmac.c: In function `snd_pmac_register_sleep_notifier':
sound/ppc/pmac.c:1407: warning: implicit declaration of function `pmu_register_sleep_notifier'
sound/ppc/pmac.c: In function `snd_pmac_unregister_sleep_notifier':
sound/ppc/pmac.c:1415: warning: implicit declaration of function `pmu_unregister_sleep_notifier'
sound/ppc/pmac.c: At top level:
sound/ppc/pmac.c:1398: error: storage size of `snd_pmac_sleep_notifier' isn't known
make[3]: *** [sound/ppc/pmac.o] Error 1
Signed-off-by: Olaf Hering <olh@suse.de>
sound/ppc/Kconfig | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.14-rc5/sound/ppc/Kconfig
===================================================================
--- linux-2.6.14-rc5.orig/sound/ppc/Kconfig
+++ linux-2.6.14-rc5/sound/ppc/Kconfig
@@ -11,7 +11,7 @@ comment "ALSA PowerMac requires INPUT"
config SND_POWERMAC
tristate "PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest)"
- depends on SND && I2C && INPUT && PPC_PMAC
+ depends on SND && I2C && INPUT && PPC_PMAC && (ADB_CUDA || ADB_PMU)
select SND_PCM
select SND_GENERIC_DRIVER
help
--
short story of a lazy sysadmin:
alias appserv=wotan
next prev parent reply other threads:[~2005-10-22 19:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-22 19:46 [PATCH] dmasound_pmac depends on pmac specific config options Olaf Hering
2005-10-22 19:55 ` Olaf Hering [this message]
2005-10-22 21:01 ` Brad Boyer
2005-10-22 21:19 ` Olaf Hering
2005-10-22 23:03 ` Brad Boyer
2005-10-22 23:00 ` Benjamin Herrenschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051022195552.GA3607@suse.de \
--to=olh@suse.de \
--cc=akpm@osdl.org \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).