Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1023623yba; Thu, 4 Apr 2019 02:39:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyN9sIEk4MAYNtouXO3ap0af7tDiagdrlw9oPbydr9uTuIAufyR1XYTbSFsV7TsrdTJ3yph X-Received: by 2002:a65:6150:: with SMTP id o16mr4762431pgv.285.1554370785732; Thu, 04 Apr 2019 02:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554370785; cv=none; d=google.com; s=arc-20160816; b=wuLOGf+wN8EQs2/UTEHpkGg1gLNcstWeZgViFV1rGW6HMedOG+fzoHtQMFI75qz/Q6 lCdK9TR4h4f+PE2mNRXD9CVD0tywfOxa5p3r6E0UySCm0m8F/MeoNY4e6ehtnJVw89jW N+sRqsomE8wmTNvsUqS4ouNvapwBiQUoW6RkKxV9uBV3dRNhJCBzIRy+z3hhegExE5+l Q54ciP2HMqML04J8CEO8cp294e3SKAx5JmBtqfzJ7TVrejt9KW3OXsNHDaEVUsnegir9 7MAlMYUpr/v1k+h0BSlhUxb7AcFddSL9V9OCHPUJABhsAzudF+0AZibhY4pJ73QlpBgK fdLA== 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=R3JN/oc4W4gr5uCGY2K205CT7tS5wczFeNcML5r58Fg=; b=s0GYThukP9nAgPYzlgFMvJ9NmI7IKb44thkvjWit+rOkZ2ga7BW2wVzbBMgUZ73d7g +dbnN691C/jzXNyVgBAmAO68NPogH5dXE9IY5PFInVncs55b4YyfiSVhOu6Zp6hsLhPL RtU5U2S70RKEPo1L/c2AYXH4vwqgu+NiDWbDwC4td0gq9HunSaOj4ShPEBwnRlOKOQxn rcN51RtJX1BXYeuv3+Sd8tfUWUvFR0RbM3L6S+Qv6oibdIoO/lx62+isPXDhaBG1AQUh 6U3y2xAK8IAizE26J1lsGTLBIT3UUFhYxyVsOMRWx5/93ehXpmZFTAOpHD/BpeRjbDRY x4HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TISwC0JX; 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 140si15919144pga.460.2019.04.04.02.39.30; Thu, 04 Apr 2019 02:39:45 -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=TISwC0JX; 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 S1730726AbfDDJiq (ORCPT + 99 others); Thu, 4 Apr 2019 05:38:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:41778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731888AbfDDJED (ORCPT ); Thu, 4 Apr 2019 05:04:03 -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 3F8332147C; Thu, 4 Apr 2019 09:04:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368642; bh=9JryHmtGTA/Ig+O7TjYWCSMn7omrbVpBAFJ0w2Nc1K4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TISwC0JXyD/+mk1m7keOauPxUw/984N8HR6ejef2IEsdyZ7sP6XhX/xNNO0EQVLfp 4JcixDlbTnmNoTfH16PQfwnsQ8Oi8xUODC2GJCzBOphulkkooZiXXEh7RpdM41Lvyb AIdphK87xkoFqM2PC0gsJitExjyEUJeNs4hyBf7w= 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 089/187] media: mx2_emmaprp: Correct return type for mem2mem buffer helpers Date: Thu, 4 Apr 2019 10:47:06 +0200 Message-Id: <20190404084607.274137097@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 8d20dcefe471763f23ad538369ec65b51993ffff ] 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/mx2_emmaprp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/mx2_emmaprp.c b/drivers/media/platform/mx2_emmaprp.c index 64195c4ddeaf..419e1cb10dc6 100644 --- a/drivers/media/platform/mx2_emmaprp.c +++ b/drivers/media/platform/mx2_emmaprp.c @@ -274,7 +274,7 @@ static void emmaprp_device_run(void *priv) { struct emmaprp_ctx *ctx = priv; struct emmaprp_q_data *s_q_data, *d_q_data; - struct vb2_buffer *src_buf, *dst_buf; + struct vb2_v4l2_buffer *src_buf, *dst_buf; struct emmaprp_dev *pcdev = ctx->dev; unsigned int s_width, s_height; unsigned int d_width, d_height; @@ -294,8 +294,8 @@ static void emmaprp_device_run(void *priv) d_height = d_q_data->height; d_size = d_width * d_height; - p_in = vb2_dma_contig_plane_dma_addr(src_buf, 0); - p_out = vb2_dma_contig_plane_dma_addr(dst_buf, 0); + p_in = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0); + p_out = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); if (!p_in || !p_out) { v4l2_err(&pcdev->v4l2_dev, "Acquiring kernel pointers to buffers failed\n"); -- 2.19.1