From ece09991ef07301d61742e743783289df8cf5bc6 Mon Sep 17 00:00:00 2001 From: Caesar Wang Date: Mon, 7 Nov 2022 18:09:13 +0800 Subject: [PATCH] video: rockchip: rga3: Fix building error with gcc Tested it with the below: export CROSS_COMPILE=arm-linux-gnueabihf- make ARCH=arm rockchip_linux_defconfig make ARCH=arm rk3288-evb-rk808-linux.img -j1 Have the built error as follows. CC drivers/video/rockchip/rga3/rga_policy.o drivers/video/rockchip/rga3/rga_policy.c: In function 'rga_job_assign': drivers/video/rockchip/rga3/rga_policy.c:243:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation] error, forbidden warning:rga_policy.c:243 243 | if (DEBUGGER_EN(MSG)) | ^~ drivers/video/rockchip/rga3/rga_policy.c:245:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 245 | continue; | ^~~~~~~~ Change-Id: Ia39abe5fab5f857490b4709de516d97c5db567c0 Signed-off-by: Caesar Wang --- drivers/video/rockchip/rga3/rga_policy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/rga3/rga_policy.c b/drivers/video/rockchip/rga3/rga_policy.c index 493083655fb0..4e2679753469 100644 --- a/drivers/video/rockchip/rga3/rga_policy.c +++ b/drivers/video/rockchip/rga3/rga_policy.c @@ -242,7 +242,7 @@ int rga_job_assign(struct rga_job *job) job->flags & RGA_JOB_UNSUPPORT_RGA_MMU) { if (DEBUGGER_EN(MSG)) pr_info("RGA2 only support under 4G memory!\n"); - continue; + continue; } if (feature > 0) { @@ -349,4 +349,4 @@ finish: pr_info("assign core: %d\n", core); return core; -} \ No newline at end of file +}