From eb6f2eff4ebe1c6317bf7cef460b2aaef533b758 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Tue, 27 Jul 2021 19:01:18 +0800 Subject: [PATCH] video/rockchip: rga: Fix gcc-10 warning drivers/video/rockchip/rga/rga_drv.c: In function 'rga_get_rotate_mode_str': drivers/video/rockchip/rga/rga_drv.c:199:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 199 | else if (req_rga->sina == -65536 && req_rga->cosa == 0) | ^ drivers/video/rockchip/rga/rga_drv.c:202:2: note: here 202 | case 0x2: | ^~~~ Signed-off-by: Tao Huang Change-Id: I2416a20f4acb5345ee130e6e93ea923205b4e395 --- drivers/video/rockchip/rga/rga_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/rockchip/rga/rga_drv.c b/drivers/video/rockchip/rga/rga_drv.c index f6ca9a2f332b..a5d43f90f21b 100644 --- a/drivers/video/rockchip/rga/rga_drv.c +++ b/drivers/video/rockchip/rga/rga_drv.c @@ -199,6 +199,7 @@ static const char *rga_get_rotate_mode_str(struct rga_req *req_rga) else if (req_rga->sina == -65536 && req_rga->cosa == 0) /* totate 270 */ return "rotate 270 "; + return "UNF"; case 0x2: return "xmirror"; case 0x3: