]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: rca: declare formats var as static
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Mar 2018 17:22:27 +0000 (13:22 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Mar 2018 10:28:41 +0000 (06:28 -0400)
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 <mchehab@s-opensource.com>
drivers/media/platform/rockchip/rga/rga.c

index 89296de9cf4aa385ca1682a359af44003d8f503e..d508a8ba6f894298f3a23350540a6800c06d8e51 100644 (file)
@@ -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,