Skip to contentSkip to conversation

+ media-platform-drivers-fix-build-on-cris-arch.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Nov 4, 2013

lore
Share & tools
lore
#0 lore raw

Subject: + media-platform-drivers-fix-build-on-cris-arch.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 04 Nov 2013 13:16:24 -0800

The patch titled
Subject: media platform drivers: fix build on cris arch
has been added to the -mm tree. Its filename is
media-platform-drivers-fix-build-on-cris-arch.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/media-platform-drivers-fix-build-on-cris-arch.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/media-platform-drivers-fix-build-on-cris-arch.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Mauro Carvalho Chehab <[email protected]>
Subject: media platform drivers: fix build on cris arch

On cris arch, the functions below aren't defined:

drivers/media/platform/sh_veu.c: In function 'sh_veu_reg_read':

drivers/media/platform/sh_veu.c:228:2: error: implicit declaration of function 'ioread32' [-Werror=implicit-function-declaration] drivers/media/platform/sh_veu.c: In function 'sh_veu_reg_write':

drivers/media/platform/sh_veu.c:234:2: error: implicit declaration of function 'iowrite32' [-Werror=implicit-function-declaration] drivers/media/platform/vsp1/vsp1.h: In function 'vsp1_read':
drivers/media/platform/vsp1/vsp1.h:66:2: error: implicit declaration of function 'ioread32' [-Werror=implicit-function-declaration] drivers/media/platform/vsp1/vsp1.h: In function 'vsp1_write':
drivers/media/platform/vsp1/vsp1.h:71:2: error: implicit declaration of function 'iowrite32' [-Werror=implicit-function-declaration] drivers/media/platform/vsp1/vsp1.h: In function 'vsp1_read':
drivers/media/platform/vsp1/vsp1.h:66:2: error: implicit declaration of function 'ioread32' [-Werror=implicit-function-declaration] drivers/media/platform/vsp1/vsp1.h: In function 'vsp1_write':
drivers/media/platform/vsp1/vsp1.h:71:2: error: implicit declaration of function 'iowrite32' [-Werror=implicit-function-declaration] drivers/media/platform/soc_camera/rcar_vin.c: In function 'rcar_vin_setup':
drivers/media/platform/soc_camera/rcar_vin.c:284:3: error: implicit declaration of function 'iowrite32' [-Werror=implicit-function-declaration]

drivers/media/platform/soc_camera/rcar_vin.c: In function 'rcar_vin_request_capture_stop':
drivers/media/platform/soc_camera/rcar_vin.c:353:2: error: implicit declaration of function 'ioread32' [-Werror=implicit-function-declaration]

Yet, they're available, as CONFIG_GENERIC_IOMAP is defined. What happens is that asm/io.h was not including asm-generic/iomap.h.

---

 arch/cris/include/asm/io.h |    1 +
 1 file changed, 1 insertion(+)
arch/cris/include/asm/io.h renamed from arch/cris/include/asm/io.h~media-platform-drivers-fix-build-on-cris-arch +1 -0
diff -puN arch/cris/include/asm/io.h~media-platform-drivers-fix-build-on-cris-arch arch/cris/include/asm/io.h
@@ -3,6 +3,7 @@
 
 #include <asm/page.h>   /* for __va, __pa */
 #include <arch/io.h>
+#include <asm-generic/iomap.h>
 #include <linux/kernel.h>
 
 struct cris_io_operations

_

Patches currently in -mm which might be from [email protected] are

media-platform-drivers-fix-build-on-cris-arch.patch linux-next.patch