* [PATCHv2] ASoC: Intel: Fix build for sst-dsp.c on PPC architecture
@ 2014-02-19 16:45 Liam Girdwood
2014-02-19 16:54 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Liam Girdwood @ 2014-02-19 16:45 UTC (permalink / raw)
To: Mark Brown; +Cc: Takashi Iwai, Liam Girdwood, alsa-devel
Disable build on non X86 architectures except for compile testing. This fixes
the following build errors on PPC and adds an option for testing the build on other
architectures as suggested by Mark Brown :-
sound/soc/intel/sst-dsp.c: In function 'sst_dsp_outbox_write':
sound/soc/intel/sst-dsp.c:218:2: error: implicit declaration of function 'memcpy_toio' [-Werror=implicit-function-declaration]
memcpy_toio(sst->mailbox.out_base, message, bytes);
^
sound/soc/intel/sst-dsp.c: In function 'sst_dsp_outbox_read':
sound/soc/intel/sst-dsp.c:231:2: error: implicit declaration of function 'memcpy_fromio' [-Werror=implicit-function-declaration]
memcpy_fromio(message, sst->mailbox.out_base, bytes);
^
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
sound/soc/intel/Kconfig | 1 +
sound/soc/intel/sst-dsp.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/sound/soc/intel/Kconfig b/sound/soc/intel/Kconfig
index c962432..4bb802b 100644
--- a/sound/soc/intel/Kconfig
+++ b/sound/soc/intel/Kconfig
@@ -15,6 +15,7 @@ config SND_SST_MFLD_PLATFORM
config SND_SOC_INTEL_SST
tristate "ASoC support for Intel(R) Smart Sound Technology"
select SND_SOC_INTEL_SST_ACPI if ACPI
+ depends on (X86 || COMPILE_TEST)
help
This adds support for Intel(R) Smart Sound Technology (SST).
Say Y if you have such a device
diff --git a/sound/soc/intel/sst-dsp.c b/sound/soc/intel/sst-dsp.c
index e0ad2e5..6e22c12 100644
--- a/sound/soc/intel/sst-dsp.c
+++ b/sound/soc/intel/sst-dsp.c
@@ -19,6 +19,7 @@
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/platform_device.h>
+#include <linux/io.h>
#include "sst-dsp.h"
#include "sst-dsp-priv.h"
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCHv2] ASoC: Intel: Fix build for sst-dsp.c on PPC architecture
2014-02-19 16:45 [PATCHv2] ASoC: Intel: Fix build for sst-dsp.c on PPC architecture Liam Girdwood
@ 2014-02-19 16:54 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-02-19 16:54 UTC (permalink / raw)
To: Liam Girdwood; +Cc: Takashi Iwai, alsa-devel
[-- Attachment #1.1: Type: text/plain, Size: 293 bytes --]
On Wed, Feb 19, 2014 at 04:45:57PM +0000, Liam Girdwood wrote:
> Disable build on non X86 architectures except for compile testing. This fixes
> the following build errors on PPC and adds an option for testing the build on other
> architectures as suggested by Mark Brown :-
Applied, thanks.
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-19 23:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 16:45 [PATCHv2] ASoC: Intel: Fix build for sst-dsp.c on PPC architecture Liam Girdwood
2014-02-19 16:54 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox