From patchwork Sun Jan 17 22:21:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 12025851 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=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 8E46BC433DB for ; Sun, 17 Jan 2021 22:23:33 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 4FD63222B3 for ; Sun, 17 Jan 2021 22:23:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4FD63222B3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=U3KZ8PLKnLfHzqYBaeYfyCHsg3o7t+TVa1B8J39FZpQ=; b=fU6xIiExWi6JDq5KpotAkFHJgO bdhzZax+FvTfj2QNJV2ZR/ffKgKwm2dM+74kF+8GiGQD7ErM0lizj1wC8uz6/et4wa73VpDhm/dCl RuoLlc+ue6LIVFoAJyy3AcKVxn62hrwEwc6z2MR1dB0tO9fyAJPzCdYsD4iHJo7DU5qR56A+McX8A ZRjEfTd7P7L3ei85DrczxI9WzrS7PTtmDeE+ewex/MKVKYNoctGAcLCN9xiE/gGId7XieIVCz4nCN nFTFDSE7gzV+sGGR0HXW4qh2Zb6vzWzTEwx9SN2Lk7Br2RjdaWy4wTwFokdW8zTm7fbDVIlOPBmyB x4Z5UZ6w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1GQr-0007rR-2T; Sun, 17 Jan 2021 22:22:01 +0000 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1GQm-0007qL-DN for linux-arm-kernel@lists.infradead.org; Sun, 17 Jan 2021 22:21:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610922113; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1Q/nirjyd353laCSIcUJdblTkIhaVs8AOQO2AamTKH0=; b=U0lABgvLUYfV5c7Y+GBz9fgyoi8rya8u7tdVrf969FTkkT13Wwuv269Qte+5+WRHmVe7MT 6HH1pbK3QF1WuqV+pUHOpb0YdYNqqWHSYGXkEGZ6Hu4B4YBzoTB2qSEjx0RPGDOi9QMNG6 lAMQziK7hwLkHOmFbym1DetYGHLGbOI= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-524-yZRR444-PaGwnYPlOcn1qw-1; Sun, 17 Jan 2021 17:21:50 -0500 X-MC-Unique: yZRR444-PaGwnYPlOcn1qw-1 Received: by mail-qv1-f72.google.com with SMTP id t16so14582318qvk.13 for ; Sun, 17 Jan 2021 14:21:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1Q/nirjyd353laCSIcUJdblTkIhaVs8AOQO2AamTKH0=; b=nVdldEMrSH9rrKJwxp4mRFtdBAL2ZL6XrTn+r8tif2NhCjc+oaGROy5Tf6YyYbbmLR udYMwCHtKmuAFK8NcQz56cf+9wGi78gN2D6i72JfRSCdJLCgz8S9K7Odyck4ySVzXw7G 76ECCPFoUqA+M48YjdPTr37+c1CCIjAsWw9PH9Tut9pHyq48Q5jTeD1/LsX5I8S+GMLJ +ghbLJKDc+Qpu6CNp2d4MoAVXjI3xSe4ZFH4oXf3CwTQljjWZ6YzJpDQDQafWn8Rjp6k Rq83UOYHtbc16AxMSpAYxnNJL0NmrTDfTe5GkiFKjvlT9WIsK4mAtWmAaVJaCOta7B25 6riQ== X-Gm-Message-State: AOAM533mu0HwiAQwwHX8CRgROXCbahSdveIrerVsmKCzLl9Q3wAUJPF7 Wj/Mr+JpcFAcMeV2hNIdaq3DarIA/YJLYlkHWteCB0UcDeJ9dzDriR8n9931vMdqTSAmC5mPMe5 F7pDkl9BMcfvkL+mZ8uiAA10nywAs625koMo= X-Received: by 2002:a0c:9e50:: with SMTP id z16mr21356531qve.13.1610922110404; Sun, 17 Jan 2021 14:21:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLfAViRBC01RcVQ97+1PHfTVCqF3ZzkhqNaMPivdg097DavcqB1qB4Ni4JYwm+u1ckPY0Qnw== X-Received: by 2002:a0c:9e50:: with SMTP id z16mr21356516qve.13.1610922110196; Sun, 17 Jan 2021 14:21:50 -0800 (PST) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id d25sm9674480qkl.97.2021.01.17.14.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 14:21:49 -0800 (PST) From: trix@redhat.com To: tiffany.lin@mediatek.com, andrew-ct.chen@mediatek.com, mchehab@kernel.org, matthias.bgg@gmail.com, hverkuil-cisco@xs4all.nl, yunfei.dong@mediatek.com, acourbot@chromium.org Subject: [PATCH] media: mtk-vcodec: fix argument used when DEBUG is defined Date: Sun, 17 Jan 2021 14:21:38 -0800 Message-Id: <20210117222138.551147-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210117_172156_477307_3B5D0E03 X-CRM114-Status: GOOD ( 13.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Rix , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Tom Rix When DEBUG is defined this error occurs drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c:306:41: error: ā€˜iā€™ undeclared (first use in this function) mtk_v4l2_debug(2, "reg[%d] base=0x%p", i, dev->reg_base[VENC_SYS]); Reviewing the old line mtk_v4l2_debug(2, "reg[%d] base=0x%p", i, dev->reg_base[i]); All the i's need to be changed to VENC_SYS. Fix a similar error for VENC_LT_SYS. Fixes: 0dc4b3286125 ("media: mtk-vcodec: venc: support SCP firmware") Signed-off-by: Tom Rix --- drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c index dfb42e19bf81..be3842e6ca47 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c @@ -303,7 +303,7 @@ static int mtk_vcodec_probe(struct platform_device *pdev) ret = PTR_ERR((__force void *)dev->reg_base[VENC_SYS]); goto err_res; } - mtk_v4l2_debug(2, "reg[%d] base=0x%p", i, dev->reg_base[VENC_SYS]); + mtk_v4l2_debug(2, "reg[%d] base=0x%p", VENC_SYS, dev->reg_base[VENC_SYS]); res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); if (res == NULL) { @@ -332,7 +332,7 @@ static int mtk_vcodec_probe(struct platform_device *pdev) ret = PTR_ERR((__force void *)dev->reg_base[VENC_LT_SYS]); goto err_res; } - mtk_v4l2_debug(2, "reg[%d] base=0x%p", i, dev->reg_base[VENC_LT_SYS]); + mtk_v4l2_debug(2, "reg[%d] base=0x%p", VENC_LT_SYS, dev->reg_base[VENC_LT_SYS]); dev->enc_lt_irq = platform_get_irq(pdev, 1); irq_set_status_flags(dev->enc_lt_irq, IRQ_NOAUTOEN);