staging: media: tegra-video: include video.h header
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 20 Jul 2023 07:20:03 +0000 (09:20 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 25 Jul 2023 07:24:31 +0000 (09:24 +0200)
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>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/staging/media/tegra-video/vip.c

index a1ab886..bc5fc82 100644 (file)
@@ -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)
 {