Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp997251yba; Thu, 4 Apr 2019 02:03:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUcRAwKecBf2YtI9NwA4BVJc2IfRP3Q7iPNxgBSPmks+6EcVX7N/2HawdAazWEr7GlXgIb X-Received: by 2002:aa7:8284:: with SMTP id s4mr4668148pfm.235.1554368622035; Thu, 04 Apr 2019 02:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368622; cv=none; d=google.com; s=arc-20160816; b=yrR8rk19K91SzvSsrZ0hj4APeX0Z+RHKyDEz0N/Tj1+2na0jj0tHsDx5S/ZhFhLoFe OQU8GNaDUfa3/7iREtRS5+hjt3VOlm/RG5NIR9La1SJDF4rifNmqoRMkk+9pT4bpx6Kt Zw4bdica80jP3hBvLYSBbXG2OQgUfDjHAR6uZ33BmWEgUyPG5Bw0Ic4eJJtREPjq82ty Siz5OecfjnNG2ZX0CixMcL0S4J5+rz3Qe0zA1AGzjsgJ/eBVybzD6PmEOwFvlBAZwS5I Nacrpxco4HDwyUPSyS2/6eQ06bxsmcCFEhwwNAypmgYJFWmBYf/IeeB3fY4AuRWOIUlV 8qfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iBU9F0g5lZlW3d7D29P01kaAH55Tx146zHO877HJYJE=; b=xv2QzjzxvVCIkoJUeax54XRL5XZMdTnGL/Y5CkWehDkbDxWIjvNYH5TNI18FcMTRMW dhqlY86CPxtWLCvHWcgt5VEOn9yG2YV3nMxKPrqG+LGEgS1VgEQfRPtShJ/cqnbQcLgu h5n2gqimknz396YAH/Ei73wXFZAoarebP8exWWyMFiqNx++6A6K8v724pmNTCn3mRuwr NrOa5jaaTNWLDtl2EM8RGdRlXzw60/90g+1GbVOyYapAfhwjzpysCkUIisQh5xuZZbv5 thv3cb15JbU5+erATZTelAZ//ra97ngw0lplSpI3XFSfY+k32MvMcOIsk5jaFybJJ3le RU7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CLdPlXDB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si16122274plb.384.2019.04.04.02.03.27; Thu, 04 Apr 2019 02:03:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CLdPlXDB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731703AbfDDJCx (ORCPT + 99 others); Thu, 4 Apr 2019 05:02:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:40360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731690AbfDDJCt (ORCPT ); Thu, 4 Apr 2019 05:02:49 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D21742184B; Thu, 4 Apr 2019 09:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368568; bh=XPTJDuUWHd1WbjvARpqNkEXfoY9bnwm7WDAoxpVftuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CLdPlXDBTRtsT/JWcmw+45Xn+9KpRT9u+ZzrUsrWn3CmNA0QrHKMNlr3vXGMrYC+5 1BJZLytUiFr68rmcNasUp3/rN24Q+XmwGDqgOoBu/UsYiQT/pN3wgMrp9JPq9bNzPd X+z3qX3a2G1T8Kk78Vs9jNiJtteWimhzqW3Kb+QY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ezequiel Garcia , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.19 087/187] media: rockchip/rga: Correct return type for mem2mem buffer helpers Date: Thu, 4 Apr 2019 10:47:04 +0200 Message-Id: <20190404084607.152598238@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit da2d3a4e4adabc6ccfb100bc9abd58ee9cd6c4b7 ] Fix the assigned type of mem2mem buffer handling API. Namely, these functions: v4l2_m2m_next_buf v4l2_m2m_last_buf v4l2_m2m_buf_remove v4l2_m2m_next_src_buf v4l2_m2m_next_dst_buf v4l2_m2m_last_src_buf v4l2_m2m_last_dst_buf v4l2_m2m_src_buf_remove v4l2_m2m_dst_buf_remove return a struct vb2_v4l2_buffer, and not a struct vb2_buffer. Fixing this is necessary to fix the mem2mem buffer handling API, changing the return to the correct struct vb2_v4l2_buffer instead of a void pointer. Signed-off-by: Ezequiel Garcia Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/rockchip/rga/rga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/rockchip/rga/rga.c b/drivers/media/platform/rockchip/rga/rga.c index ab5a6f95044a..86a76f35a9a1 100644 --- a/drivers/media/platform/rockchip/rga/rga.c +++ b/drivers/media/platform/rockchip/rga/rga.c @@ -43,7 +43,7 @@ static void device_run(void *prv) { struct rga_ctx *ctx = prv; struct rockchip_rga *rga = ctx->rga; - struct vb2_buffer *src, *dst; + struct vb2_v4l2_buffer *src, *dst; unsigned long flags; spin_lock_irqsave(&rga->ctrl_lock, flags); @@ -53,8 +53,8 @@ static void device_run(void *prv) src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx); dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx); - rga_buf_map(src); - rga_buf_map(dst); + rga_buf_map(&src->vb2_buf); + rga_buf_map(&dst->vb2_buf); rga_hw_start(rga); -- 2.19.1