From patchwork Thu Jul 20 07:20:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 13319925 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84B29EB64DA for ; Thu, 20 Jul 2023 07:20:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231330AbjGTHUc (ORCPT ); Thu, 20 Jul 2023 03:20:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231504AbjGTHUT (ORCPT ); Thu, 20 Jul 2023 03:20:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7319726A0 for ; Thu, 20 Jul 2023 00:20:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4FBE61853 for ; Thu, 20 Jul 2023 07:20:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79795C433C8; Thu, 20 Jul 2023 07:20:04 +0000 (UTC) Message-ID: <4d55437f-4b3e-8a06-1d8e-e603dc333383@xs4all.nl> Date: Thu, 20 Jul 2023 09:20:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: Linux Media Mailing List Cc: Luca Ceresoli , Dmitry Osipenko From: Hans Verkuil Subject: [PATCH] staging: media: tegra-video: include video.h header Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 Reviewed-by: Luca Ceresoli --- 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 #include "vip.h" +#include "video.h" static inline struct tegra_vip *host1x_client_to_vip(struct host1x_client *client) {