linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media/platform: fsl-viu.c: fix build for MICROBLAZE
@ 2019-08-06 22:01 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2019-08-06 22:01 UTC (permalink / raw)
  To: linux-media, LKML, Mauro Carvalho Chehab

From: Randy Dunlap <rdunlap@infradead.org>

arch/microblaze/ defines out_be32() and in_be32(), so don't do that
again in the driver source.

Fixes these build warnings:

../drivers/media/platform/fsl-viu.c:36: warning: "out_be32" redefined
../arch/microblaze/include/asm/io.h:50: note: this is the location of the previous definition
../drivers/media/platform/fsl-viu.c:37: warning: "in_be32" redefined
../arch/microblaze/include/asm/io.h:53: note: this is the location of the previous definition

Fixes: 29d750686331 ("media: fsl-viu: allow building it with COMPILE_TEST")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Mauro Carvalho Chehab <mchehab@s-opensource.com>
---
 drivers/media/platform/fsl-viu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- lnx-53-rc3.orig/drivers/media/platform/fsl-viu.c
+++ lnx-53-rc3/drivers/media/platform/fsl-viu.c
@@ -32,7 +32,7 @@
 #define VIU_VERSION		"0.5.1"
 
 /* Allow building this driver with COMPILE_TEST */
-#ifndef CONFIG_PPC
+#if !defined(CONFIG_PPC) && !defined(CONFIG_MICROBLAZE)
 #define out_be32(v, a)	iowrite32be(a, (void __iomem *)v)
 #define in_be32(a)	ioread32be((void __iomem *)a)
 #endif


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-06 22:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-06 22:01 [PATCH] media/platform: fsl-viu.c: fix build for MICROBLAZE Randy Dunlap

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).