All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hva: fix sparse warnings
@ 2016-09-16  8:31 Hans Verkuil
  0 siblings, 0 replies; only message in thread
From: Hans Verkuil @ 2016-09-16  8:31 UTC (permalink / raw)
  To: linux-media; +Cc: Jean-Christophe Trotin

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>
---
 drivers/media/platform/sti/hva/hva-v4l2.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/sti/hva/hva-v4l2.c b/drivers/media/platform/sti/hva/hva-v4l2.c
index 1696e02..6bf3c858 100644
--- a/drivers/media/platform/sti/hva/hva-v4l2.c
+++ b/drivers/media/platform/sti/hva/hva-v4l2.c
@@ -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 = {
-- 
2.8.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-16  8:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-16  8:31 [PATCH] hva: fix sparse warnings Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.