From: Woncheon Ahn Date: Mon, 22 Dec 2014 04:21:47 +0000 (+0900) Subject: dma: resolve prevent '52720' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9786ba7ccde4b5e7ae3a1179f612fcda79b19d94;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git dma: resolve prevent '52720' Change-Id: Icace7fafc9ffc27cfa70636589ce2f275d82e370 Signed-off-by: Woncheon Ahn --- diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 943168b03c5a..017a9c7b041b 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -591,7 +591,7 @@ static inline u32 _emit_END(unsigned dry_run, u8 buf[]) return SZ_DMAEND; } -static inline u32 _emit_FLUSHP(unsigned dry_run, u8 buf[], u8 peri) +static inline int _emit_FLUSHP(unsigned dry_run, u8 buf[], u8 peri) { if (dry_run) return SZ_DMAFLUSHP; @@ -646,7 +646,7 @@ static inline u32 _emit_LDP(unsigned dry_run, u8 buf[], return SZ_DMALDP; } -static inline u32 _emit_LP(unsigned dry_run, u8 buf[], +static inline int _emit_LP(unsigned dry_run, u8 buf[], unsigned loop, u8 cnt) { if (dry_run) @@ -672,7 +672,7 @@ struct _arg_LPEND { u8 bjump; }; -static inline u32 _emit_LPEND(unsigned dry_run, u8 buf[], +static inline int _emit_LPEND(unsigned dry_run, u8 buf[], const struct _arg_LPEND *arg) { enum pl330_cond cond = arg->cond; @@ -717,7 +717,7 @@ static inline u32 _emit_KILL(unsigned dry_run, u8 buf[]) return SZ_DMAKILL; } -static inline u32 _emit_MOV(unsigned dry_run, u8 buf[], +static inline int _emit_MOV(unsigned dry_run, u8 buf[], enum dmamov_dst dst, u32 val) { if (dry_run) @@ -748,7 +748,7 @@ static inline u32 _emit_RMB(unsigned dry_run, u8 buf[]) return SZ_DMARMB; } -static inline u32 _emit_SEV(unsigned dry_run, u8 buf[], u8 ev) +static inline int _emit_SEV(unsigned dry_run, u8 buf[], u8 ev) { if (dry_run) return SZ_DMASEV;