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 <wxt@rock-chips.com>
This commit is contained in:
Caesar Wang
2022-11-07 18:09:13 +08:00
parent 87c43bed76
commit ece09991ef

View File

@@ -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;
}
}