Message ID | 4d55437f-4b3e-8a06-1d8e-e603dc333383@xs4all.nl (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | staging: media: tegra-video: include video.h header | expand |
Hi Hans, On Thu, 20 Jul 2023 09:20:03 +0200 Hans Verkuil <hverkuil@xs4all.nl> wrote: > 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>
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) {
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(+)