public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: media: tegra-video: include video.h header
@ 2023-07-20  7:20 Hans Verkuil
  2023-07-20 13:44 ` Luca Ceresoli
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Verkuil @ 2023-07-20  7:20 UTC (permalink / raw)
  To: Linux Media Mailing List; +Cc: Luca Ceresoli, Dmitry Osipenko

This tells sparse that tegra_vip_driver is actually used,
and so avoids this warning:

drivers/staging/media/tegra-video/vip.c:280:31: warning: 'tegra_vip_driver' defined but not used [-Wunused-variable]
  280 | static struct platform_driver tegra_vip_driver = {
      |                               ^~~~~~~~~~~~~~~~

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
---
 drivers/staging/media/tegra-video/vip.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/media/tegra-video/vip.c b/drivers/staging/media/tegra-video/vip.c
index a1ab886acc18..bc5fc82a7702 100644
--- a/drivers/staging/media/tegra-video/vip.c
+++ b/drivers/staging/media/tegra-video/vip.c
@@ -20,6 +20,7 @@
 #include <media/v4l2-fwnode.h>

 #include "vip.h"
+#include "video.h"

 static inline struct tegra_vip *host1x_client_to_vip(struct host1x_client *client)
 {
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-20 13:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-20  7:20 [PATCH] staging: media: tegra-video: include video.h header Hans Verkuil
2023-07-20 13:44 ` Luca Ceresoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox