From: Mauro Carvalho Chehab Date: Thu, 22 Mar 2018 17:22:27 +0000 (-0400) Subject: media: rca: declare formats var as static X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=43d1ed0811bb2780c49fa17e90a29b27078244a7;p=openwrt%2Fstaging%2Fblogic.git media: rca: declare formats var as static As warned: drivers/media/platform/rockchip/rga/rga.c:210:16: warning: symbol 'formats' was not declared. Should it be static? Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c index 89296de9cf4a..d508a8ba6f89 100644 --- a/drivers/media/platform/rockchip/rga/rga.c +++ b/drivers/media/platform/rockchip/rga/rga.c @@ -207,7 +207,7 @@ static int rga_setup_ctrls(struct rga_ctx *ctx) return 0; } -struct rga_fmt formats[] = { +static struct rga_fmt formats[] = { { .fourcc = V4L2_PIX_FMT_ARGB32, .color_swap = RGA_COLOR_RB_SWAP,