All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: qup: Depend on ARM && COMPILE_TEST to avoid build error
@ 2014-02-24  4:07 Axel Lin
  2014-02-24  5:46 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2014-02-24  4:07 UTC (permalink / raw)
  To: Mark Brown
  Cc: Stephen Rothwell, Ivan T. Ivanov, linux-spi-u79uwXL29TY76Z2rM5mHXA

This driver uses writel_relaxed() which does not exist in x86, ppc, etc.
Make it depend on ARM && COMPILE_TEST to avoid below build error:

  CC [M]  drivers/spi/spi-qup.o
drivers/spi/spi-qup.c: In function 'spi_qup_set_state':
drivers/spi/spi-qup.c:180:3: error: implicit declaration of function 'writel_relaxed' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [drivers/spi/spi-qup.o] Error 1
make[1]: *** [drivers/spi] Error 2
make: *** [drivers] Error 2

Reported-by: Stephen Rothwell <sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
Signed-off-by: Axel Lin <axel.lin-8E1dMatC8ynQT0dZR+AlfA@public.gmane.org>
---
 drivers/spi/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index e4e170f..db22cda 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -384,7 +384,7 @@ config SPI_RSPI
 
 config SPI_QUP
 	tristate "Qualcomm SPI controller with QUP interface"
-	depends on ARCH_MSM_DT || COMPILE_TEST
+	depends on ARCH_MSM_DT || (ARM && COMPILE_TEST)
 	help
 	  Qualcomm Universal Peripheral (QUP) core is an AHB slave that
 	  provides a common data path (an output FIFO and an input FIFO)
-- 
1.8.1.2



--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] spi: qup: Depend on ARM && COMPILE_TEST to avoid build error
  2014-02-24  4:07 [PATCH] spi: qup: Depend on ARM && COMPILE_TEST to avoid build error Axel Lin
@ 2014-02-24  5:46 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2014-02-24  5:46 UTC (permalink / raw)
  To: Axel Lin
  Cc: Stephen Rothwell, Ivan T. Ivanov, linux-spi-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

On Mon, Feb 24, 2014 at 12:07:51PM +0800, Axel Lin wrote:
> This driver uses writel_relaxed() which does not exist in x86, ppc, etc.
> Make it depend on ARM && COMPILE_TEST to avoid below build error:

Applied, but two things here - one is that it's very surprising that the
zero day tester didn't notice this, the other is that we really need to
get the architectures fixed for this, having to deal with this sort of
pointless platform dependencies is a waste of time.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2014-02-24  5:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-24  4:07 [PATCH] spi: qup: Depend on ARM && COMPILE_TEST to avoid build error Axel Lin
2014-02-24  5:46 ` Mark Brown

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.