From: Axel Lin <axel.lin@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Liam Girdwood <lrg@ti.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
alsa-devel@alsa-project.org
Subject: [RFC][PATCH] ASoC: Make wm1250-ev1 depends on GPIOLIB
Date: Tue, 27 Sep 2011 10:49:59 +0800 [thread overview]
Message-ID: <1317091799.315.6.camel@phoenix> (raw)
I got below build error if GPIO support is disabled.
Make wm1250-ev1 depends on GPIOLIB to fix below build error.
CC sound/soc/codecs/wm1250-ev1.o
sound/soc/codecs/wm1250-ev1.c:32:14: error: array type has incomplete element type
sound/soc/codecs/wm1250-ev1.c: In function ‘wm1250_ev1_pdata’:
sound/soc/codecs/wm1250-ev1.c:126:18: warning: type defaults to ‘int’ in type name
sound/soc/codecs/wm1250-ev1.c:126:18: warning: type defaults to ‘int’ in type name
sound/soc/codecs/wm1250-ev1.c:126:18: error: negative width in bit-field ‘<anonymous>’
sound/soc/codecs/wm1250-ev1.c:134:42: warning: type defaults to ‘int’ in type name
sound/soc/codecs/wm1250-ev1.c:134:42: warning: type defaults to ‘int’ in type name
sound/soc/codecs/wm1250-ev1.c:134:42: error: negative width in bit-field ‘<anonymous>’
sound/soc/codecs/wm1250-ev1.c: In function ‘wm1250_ev1_free’:
sound/soc/codecs/wm1250-ev1.c:155:34: warning: type defaults to ‘int’ in type name
sound/soc/codecs/wm1250-ev1.c:155:34: warning: type defaults to ‘int’ in type name
sound/soc/codecs/wm1250-ev1.c:155:34: error: negative width in bit-field ‘<anonymous>’
make[3]: *** [sound/soc/codecs/wm1250-ev1.o] Error 1
make[2]: *** [sound/soc/codecs] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
I got the build error while trying to build for SND_MFLD_MACHINE and SND_SST_PLATFORM.
( "Enable ALSA for SoC audio support" and "Build all ASoC CODEC drivers" on X86 )
Axel
sound/soc/codecs/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 3449431..0ad80fe 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -58,7 +58,7 @@ config SND_SOC_ALL_CODECS
select SND_SOC_UDA134X
select SND_SOC_UDA1380 if I2C
select SND_SOC_WL1273 if MFD_WL1273_CORE
- select SND_SOC_WM1250_EV1 if I2C
+ select SND_SOC_WM1250_EV1 if I2C && GPIOLIB
select SND_SOC_WM2000 if I2C
select SND_SOC_WM5100 if I2C
select SND_SOC_WM8350 if MFD_WM8350
--
1.7.4.1
next reply other threads:[~2011-09-27 2:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-27 2:49 Axel Lin [this message]
2011-09-27 9:48 ` [RFC][PATCH] ASoC: Make wm1250-ev1 depends on GPIOLIB Mark Brown
2011-09-27 9:48 ` Mark Brown
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=1317091799.315.6.camel@phoenix \
--to=axel.lin@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@ti.com \
/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 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.