From: Greg Kroah-Hartman Date: Mon, 10 Oct 2016 10:03:17 +0000 (+0200) Subject: staging: vc04_services: fix dmac_map/unmap_area prototypes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f51bb7a6f548e961eb50e2221e45fcfe2b31ed94;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: vc04_services: fix dmac_map/unmap_area prototypes You don't define a function prototype on one line as a #define, and then the next declare it as an external C function, without expecting a C compiler to complain loudly. So fix up this mess. Cc: Daniel Stone Cc: "Noralf Trønnes" Cc: Pranith Kumar Cc: popcornmix Cc: Eric Anholt Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c index 4cb5bff23728..9ba0e2a7e01e 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c @@ -48,9 +48,6 @@ #define dmac_map_area __glue(_CACHE,_dma_map_area) #define dmac_unmap_area __glue(_CACHE,_dma_unmap_area) -extern void dmac_map_area(const void *, size_t, int); -extern void dmac_unmap_area(const void *, size_t, int); - #define TOTAL_SLOTS (VCHIQ_SLOT_ZERO_SLOTS + 2 * 32) #define VCHIQ_ARM_ADDRESS(x) ((void *)((char *)x + g_virt_to_bus_offset))