[media] hva: fix sparse warnings
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 16 Sep 2016 08:23:53 +0000 (05:23 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 19 Sep 2016 19:28:48 +0000 (16:28 -0300)
drivers/media/platform/sti/hva/hva-v4l2.c:43:22: warning: symbol 'hva_encoders' was not declared. Should it be static?
drivers/media/platform/sti/hva/hva-v4l2.c:1401:24: warning: symbol 'hva_driver' was not declared. Should it be static?

Make these static.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/sti/hva/hva-v4l2.c

index 1696e02c57074f6ee75ad365f59fc22dd0cd5faf..6bf3c85882300f9f97c65dd9a2d10bf4c3f68369 100644 (file)
@@ -40,7 +40,7 @@
 #define fh_to_ctx(f)    (container_of(f, struct hva_ctx, fh))
 
 /* registry of available encoders */
-const struct hva_enc *hva_encoders[] = {
+static const struct hva_enc *hva_encoders[] = {
        &nv12h264enc,
        &nv21h264enc,
 };
@@ -1398,7 +1398,7 @@ static const struct of_device_id hva_match_types[] = {
 
 MODULE_DEVICE_TABLE(of, hva_match_types);
 
-struct platform_driver hva_driver = {
+static struct platform_driver hva_driver = {
        .probe  = hva_probe,
        .remove = hva_remove,
        .driver = {