Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp400074pxb; Wed, 3 Mar 2021 06:13:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNQZFpgI0aYpdDhVfpXSV2zTrY5/iLLTaueNR75Bv6T4rZqZ1VrkLKmubLictr38nONpeF X-Received: by 2002:ac2:4c0b:: with SMTP id t11mr15606600lfq.241.1614780832598; Wed, 03 Mar 2021 06:13:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614780832; cv=none; d=google.com; s=arc-20160816; b=qcnKA4xCyJnxRjuzcnzhAk9pTYK6aph/5kU0KLHrzEoZscIUl0++pJfHXQ3lKJ95/d JzMO1hQdmwj8NcwxBxgQ0y6sfKK1Q+Y/j9YN30SLGJQvHlIHahk26Dfj3tA2uKD8O4Ij elsukPYysGRiYUGQ1FntOROsdgx+bUlI9djh6FA40IRPXhLLACGP+dI1gd7HNTMTeVwK RU3HgNZSLLVVfWZJZG4xN4U+q7ze/Yad7Z3XMDJHNCbD6YbqM0d1Kxid0iUE8uo0AicY ekKItmWS1OT3Kuxg+/5uSfFxsAMnpedc58LmRMQmgMKt+hPMitPv/Exqa/8M46L4qkCV BvQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GvYk+bMIMZLlx9hTV146P45QspB3cOzklXcSi11ZzzQ=; b=MbZUAly71rqpWRZsLDT0b2tA29Z03LCdR7kq0JFlruh0+6tCBTehXd1gIv8Ru3MYkh gfaDgNIKRu8juWo9yhrMLr52VPnghcMF2GpmfufxfeycCrU09g9vrMBvrsFX263+D13t /X/xNqixpvVUsaEpPrZJv7eVhlEKKtQ41+Whq/kMlDIUwRm6wfXClEnNCuMUjG24avq1 lzfdIMvuEgxBVhURKdOwcRtCRgNX5Jai/ZQuNpFJLVwbRmDXWTTzSKo5QGd/wXuXohuQ Yl4UGS9gGIsWzlEg7ZG2a6bmBPt1jBDlTygtxLAPTUTQoD7RSKjn2h2T36k80UO1soEG kG/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ujst5itT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si14853434edq.252.2021.03.03.06.13.05; Wed, 03 Mar 2021 06:13:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ujst5itT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243280AbhCAUhS (ORCPT + 99 others); Mon, 1 Mar 2021 15:37:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:37668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237399AbhCARIP (ORCPT ); Mon, 1 Mar 2021 12:08:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5B62D64F81; Mon, 1 Mar 2021 16:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616857; bh=/GYx9Lh4Pkq2HzPen200ucKkieI6gaXj6ncSJ59UDEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ujst5itTuDBsNoaIXx4qC03pzwsnuImVt5Yl0rtWMZSY88OrM6AXpY/Xy8RkE3V7D WI3+JwCd5V1eaEzNQUGIuSrasXf2/cGaTERu1g+cccFNoEfsbjvPfPMtzjY8k5aTB3 R8rpnF7fI3+Mk2gqR6hyio5OTx6ywk0+i+5pFln0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tom Rix , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.19 092/247] media: pxa_camera: declare variable when DEBUG is defined Date: Mon, 1 Mar 2021 17:11:52 +0100 Message-Id: <20210301161036.177398711@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tom Rix [ Upstream commit 031b9212eeee365443aaef013360ea6cded7b2c4 ] When DEBUG is defined this error occurs drivers/media/platform/pxa_camera.c:1410:7: error: ā€˜iā€™ undeclared (first use in this function) for (i = 0; i < vb->num_planes; i++) ^ The variable 'i' is missing, so declare it. Fixes: 6f28435d1c15 ("[media] media: platform: pxa_camera: trivial move of functions") Signed-off-by: Tom Rix Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/pxa_camera.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media/platform/pxa_camera.c index 406ac673ad84c..0281b8e53fef2 100644 --- a/drivers/media/platform/pxa_camera.c +++ b/drivers/media/platform/pxa_camera.c @@ -1452,6 +1452,9 @@ static int pxac_vb2_prepare(struct vb2_buffer *vb) struct pxa_camera_dev *pcdev = vb2_get_drv_priv(vb->vb2_queue); struct pxa_buffer *buf = vb2_to_pxa_buffer(vb); int ret = 0; +#ifdef DEBUG + int i; +#endif switch (pcdev->channels) { case 1: -- 2.27.0