From patchwork Tue Mar 7 05:57:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shixiong Ou X-Patchwork-Id: 13162826 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93EA3C678D5 for ; Tue, 7 Mar 2023 05:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Wyitx1irVQj9JBslRobAi6uNPiZR4x3Pt+D2NOWtSh4=; b=legndlIrupa7g5 3yVv94UVi6eOQpjwyYQS5mw8cgQMRUiRXiId1HPlv92OaaADdOosEhrJ5rmT99a/L4TmZp1eTxOzu gQOOAzPYNmrnE+l0wNuDclsDAqe/CcvWNiOEuMOXoSQcayOnIAjekBHf0U1fdIQcnJMdfc5RVyrDa YHNVQSThhpelqtCOPDY5KGh5b3EEpApoKt+sovriJ/zE6nIWAv2ja201nhevT9KA3TF0vjugcB0av 4TX/trVs2kZk46RejhgzgtNRXO3/Cv0JQCiW3WNa6H88/WyXYCXQg6CvFwhzZMI/QM1djgqJ/tZYR RFZgY7ojYaoQm4Hf6lGA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZQL8-00GIv9-20; Tue, 07 Mar 2023 05:58:22 +0000 Received: from m12.mail.163.com ([220.181.12.198]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZQL4-00GIu1-48; Tue, 07 Mar 2023 05:58:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version: Content-Type; bh=skQAH1wrki2jdU4ERbZ2RamtIdkAj73e5Wp+ZsDAZIU=; b=dQxOWeaWfuWlonSb7loPyvR9fpLIXetKzV8qre5rzqeGpb6E89FtwlkCtDWWcd pWv3xwOE6+x5/B4d0y+xoEjZbuPkoABP0YKw2h8niy1dz2H3IRivyyPCw+bKGWA3 4DXv7PncwpTk30GMNtW3y4HDNQUnEW+U3ili+Q+J20x0o= Received: from localhost.localdomain (unknown [116.128.244.169]) by zwqz-smtp-mta-g4-0 (Coremail) with SMTP id _____wAnl1Nd0gZkkjaPCQ--.38627S2; Tue, 07 Mar 2023 13:57:51 +0800 (CST) From: oushixiong To: Bin Liu Cc: Mauro Carvalho Chehab , Matthias Brugger , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, oushixiong Subject: [PATCH] mtk-jpegenc: Fix a compilation issue Date: Tue, 7 Mar 2023 13:57:48 +0800 Message-Id: <20230307055748.1836087-1-oushixiong1025@163.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CM-TRANSID: _____wAnl1Nd0gZkkjaPCQ--.38627S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Xr17XF48Cr18CF1xZrWrXwb_yoW8JrWrpF Wak34vkrW8Grs0grWkJw17JF15Gw1fXFW7Wr17uw1Iq34fJw1xJr1jya4FvFZ2vrW7Cas3 Jr10v34xGr4qvFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jfL08UUUUU= X-Originating-IP: [116.128.244.169] X-CM-SenderInfo: xrxvxxx0lr0wirqskqqrwthudrp/xtbBzggrD2I0XjhvrQAAsQ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230306_215818_507719_1F17E340 X-CRM114-Status: GOOD ( 10.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: oushixiong ‘mtk8195_jpegenc_drvdata’ defined but not used [-Werror=unused-variable] Signed-off-by: oushixiong --- drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c index 969516a940ba..b875fc664150 100644 --- a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c +++ b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c @@ -1846,6 +1846,7 @@ static const struct dev_pm_ops mtk_jpeg_pm_ops = { SET_RUNTIME_PM_OPS(mtk_jpeg_pm_suspend, mtk_jpeg_pm_resume, NULL) }; +#if defined(CONFIG_OF) static const struct mtk_jpeg_variant mt8173_jpeg_drvdata = { .clks = mt8173_jpeg_dec_clocks, .num_clks = ARRAY_SIZE(mt8173_jpeg_dec_clocks), @@ -1898,7 +1899,6 @@ static const struct mtk_jpeg_variant mtk8195_jpegdec_drvdata = { .cap_q_default_fourcc = V4L2_PIX_FMT_YUV420M, }; -#if defined(CONFIG_OF) static const struct of_device_id mtk_jpeg_match[] = { { .compatible = "mediatek,mt8173-jpgdec",