From patchwork Mon Aug 9 13:19:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tzung-Bi Shih X-Patchwork-Id: 12426489 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 997E9C4338F for ; Mon, 9 Aug 2021 13:24:36 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 56D8460C3E for ; Mon, 9 Aug 2021 13:24:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 56D8460C3E Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:Cc:To:From:Subject:Mime-Version: Message-Id:Date: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=pvav7ZV0vo3q6E2krF6/Y+ngdGAZ+mrrJPGaIUHj/P0=; b=fLI Tjm9UGBTOST1iAR8Dk3i0BjMnoPW5lluyWFmDGLFNMV171CqbGF4f6OC8DFm4muJ+ZaBkMY5Xrn9y ZzCfb5PG/qcfn62SSp/dUEHK9HICf8So8t7dW6aMXBNI1b/bWkju8OcJAWzbUSZTa7o+XAPL39JuQ V8iQJwjay4etCc10uQ0acLGhb9l6/9BSuqMZTiH9JG2kF7KijAegqRN8h7v3ggfGiS91I1tJL5fRf rF6J1f4QJwAPUaoX8UyE0Lp+DOeyxqRcj4qYQjyiruyNYXMn9a/hgH/epQrTvHwD6iNvlJFJmAR/r 20+saqf8CZZM2y/bOAZzbHdDoWw5o4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mD5CP-000kjR-0o; Mon, 09 Aug 2021 13:20:13 +0000 Received: from mail-pj1-x1049.google.com ([2607:f8b0:4864:20::1049]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mD5CL-000ki7-7L for linux-arm-kernel@lists.infradead.org; Mon, 09 Aug 2021 13:20:10 +0000 Received: by mail-pj1-x1049.google.com with SMTP id c7-20020a17090a4d07b029017817180a76so16133672pjg.0 for ; Mon, 09 Aug 2021 06:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=B9pfgHx94Mp6VS74RBiZjYF3tpik3lJpO946s0UsSic=; b=mAuIQtkaP0fzYFW6h6JQa1cEz9AoQfPARLqb+YpSwBvFqfEfZKQSAaVbFoKFeaNcJd cydTti3lobCvmQGsRBpQg59HWlDCqo8Uw1xZNVeFi+eOTti9jtI/b9awQul606CQAFoP I9uClYw8qm7bBimTcc/VZKLXqTMH7IMB0OgPikzz5fo3vR4DGXXq4x56iKUt01f6lqNV yg68CHhUPHT10W0kQ/douHD9tA/fYY6MhUaundwT4sEVWnVNmE/wrEoL1oCsViqHGwbe 5bZwgU1zlNnVn9woI7LciBvWYb6ywvXOhQB3U6hdyFr5YYDhz+wltSuMYtjxusBx5xb6 o+Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=B9pfgHx94Mp6VS74RBiZjYF3tpik3lJpO946s0UsSic=; b=DYzc/4UuYRWnZE8BLV/IGwSsZaG7QInkq12CFD6Tj+sUGgYqWpqY+znUNe3yAxjd0G EbtLW3P+bfBaXb/BVSYQA04qO3/el2KCVyRyy7iaMlqzAktttOvnTjVraV6i6NqhPmeT mZ5JPz/4zpGXqf0IHgO5dlfHJoHm8AFBMGzMefmYgJkPKRy9NU5K0ifh6iCkB8q04cmt 58O0IdMs7s2dvPhDEzT7JUFBy+eJcYa8m5dEn2qvwJ0f+neaNrQfiFdUDTBp2fJyVNOF uchcPU/oOrYRBs1257pQjV6xSuTuQeuZZX9Ivkk4Z4GRaARHVFnWzMtxATGYzaWhqIJw 0q+Q== X-Gm-Message-State: AOAM532XoY6V+eNdoCyt2Sej4I67iW2vKCySIm1j46bULZvn/nBQ4nO5 hJ6EXiWSVqzFoNiJFK7AxUL7fzr3Hl21 X-Google-Smtp-Source: ABdhPJxIewl0V72VGtEJkuskjE1bDRXXbrFucVnESfeYsyGu9cj4xHe6y8NbEVYV0E1hDY1gZAG7egqHh8t7 X-Received: from tzungbi-z840.tpe.corp.google.com ([2401:fa00:1:10:8c61:f7b3:b14d:6bb2]) (user=tzungbi job=sendgmr) by 2002:a17:90a:7886:: with SMTP id x6mr121pjk.1.1628515207043; Mon, 09 Aug 2021 06:20:07 -0700 (PDT) Date: Mon, 9 Aug 2021 21:19:40 +0800 Message-Id: <20210809131940.2890108-1-tzungbi@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.32.0.605.g8dce9f2422-goog Subject: [PATCH] media: mtk-vcodec: fix warnings: symbol XXX was not declared From: Tzung-Bi Shih To: hverkuil-cisco@xs4all.nl Cc: linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tzungbi@google.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210809_062009_355956_F5D61153 X-CRM114-Status: GOOD ( 13.19 ) 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 Fixes sparse warnings: - warning: symbol 'mtk_vdec_8173_pdata' was not declared. Should it be static? - warning: symbol 'mtk_vdec_8183_pdata' was not declared. Should it be static? Signed-off-by: Tzung-Bi Shih --- The patch applies after series [1] to fix the follow up sparse warnings. [1]: https://patchwork.linuxtv.org/project/linux-media/cover/20210806041530.4170869-1-tzungbi@google.com/ drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h | 2 ++ drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h index 9fbd24186c1a..46783516b84a 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h @@ -65,6 +65,8 @@ struct mtk_video_dec_buf { extern const struct v4l2_ioctl_ops mtk_vdec_ioctl_ops; extern const struct v4l2_m2m_ops mtk_vdec_m2m_ops; extern const struct media_device_ops mtk_vcodec_media_ops; +extern const struct mtk_vcodec_dec_pdata mtk_vdec_8173_pdata; +extern const struct mtk_vcodec_dec_pdata mtk_vdec_8183_pdata; /* diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c index 36ae3e6017f0..e6e6a8203eeb 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c @@ -372,9 +372,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev) return ret; } -extern const struct mtk_vcodec_dec_pdata mtk_vdec_8173_pdata; -extern const struct mtk_vcodec_dec_pdata mtk_vdec_8183_pdata; - static const struct of_device_id mtk_vcodec_match[] = { { .compatible = "mediatek,mt8173-vcodec-dec",