Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1034788yba; Thu, 4 Apr 2019 02:56:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5sJW8sxWul0baaLznenKiGKnA/19KRgbAfMP6aI+j9WNqzcNccYCJ9DpepVk3CORsh4mg X-Received: by 2002:a62:f24e:: with SMTP id y14mr4719705pfl.209.1554371805201; Thu, 04 Apr 2019 02:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554371805; cv=none; d=google.com; s=arc-20160816; b=gZV9UGzYSElM7ViXHQeBwFOLQebtqnoeFCfSCWDYgX8iA+6M+xs1hGaW+sDyIWBpoR fIMKwd0rikFP09CWpZHct79lJ/zsslweLMPARGv4zl3l9as7ZlAaATLuCDmKPmf6N5cF b0ZjdD5J4HzLunbqu9knnw90LWx/qGuCzZJacqIQsjGjwH5dbDACCd5nwbEX6tFQxsDA VW/LihDVdhi6vEJcnebdPZSNrBQHajhipj2HZttg3CeZmEJNGFSwvAUr/DNvRdwcp8pH l4kED7eMl2bWtbikWcc1x4Z9OUdK/8hT/6GZ3wSbpuxndRhdKB7Nn3tuZK7OIG0gHUEf IsFw== 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=hY70L+xvulXyi0wTWj3035vbM77ZePrqoG/APG7BIhI=; b=fbRy5Ywfd9AEIQw9cciSo+ese5BXgXLjPHKjC8ELBhrWJtDNrMR/gu8dllPo1WG0br S9rHATKE4Vpy6ba5vXaNIUPm6GGKhadVVY1tL3/KEV+aS+0+hTRY18nT7upRxoVQvqDW 6xWoqZJf3gaIT8fP8iYVHZHvT3B2v/Ach1sEdMis7a6c1O15NK5xOv7hkRTmSD+P/w+E mZ6d+XAaFTSJUW3o5uuCdtEoV7h/0y9GILFyaNjO0X3JhZyN7hK21wZyhmRBCqGqI6Rs QL9fqsPATW/EaQfvaPUwHPOPy6+Z0FBd23oldLrp/dhDvfq3HXWFNWyvE5r0M99TsMnd xdiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ShHzh3fb; 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 z3si15739640pfa.239.2019.04.04.02.56.30; Thu, 04 Apr 2019 02:56: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=ShHzh3fb; 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 S1728873AbfDDIvR (ORCPT + 99 others); Thu, 4 Apr 2019 04:51:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:52902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728796AbfDDIvP (ORCPT ); Thu, 4 Apr 2019 04:51:15 -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 CC47120882; Thu, 4 Apr 2019 08:51:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554367874; bh=NT6CnU4oVC3EnnN/4lPJv/IJaRtkgC7Tzi+tio9LYig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ShHzh3fbJ59pjzqop3bX5wTTNjgjaWglQcuGGoN1Co5C94fogp3uWfdd4t5dRs5ke lo4ft5gNOp5gxGKLegS9oUB0Cf7e4F0lThPFbHeCMiN14xUdT61b/rEyetWV7r5ZMp EUKHOV0jy84GGKKBTIzmhJakVeq4ij9AaYx3Pf20= 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.9 45/91] media: sh_veu: Correct return type for mem2mem buffer helpers Date: Thu, 4 Apr 2019 10:47:29 +0200 Message-Id: <20190404084538.076368300@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084535.450029272@linuxfoundation.org> References: <20190404084535.450029272@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.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 43c145195c7fc3025ee7ecfc67112ac1c82af7c2 ] 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/sh_veu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/sh_veu.c b/drivers/media/platform/sh_veu.c index 15a562af13c7..a4f593220ef0 100644 --- a/drivers/media/platform/sh_veu.c +++ b/drivers/media/platform/sh_veu.c @@ -276,13 +276,13 @@ static void sh_veu_process(struct sh_veu_dev *veu, static void sh_veu_device_run(void *priv) { struct sh_veu_dev *veu = priv; - struct vb2_buffer *src_buf, *dst_buf; + struct vb2_v4l2_buffer *src_buf, *dst_buf; src_buf = v4l2_m2m_next_src_buf(veu->m2m_ctx); dst_buf = v4l2_m2m_next_dst_buf(veu->m2m_ctx); if (src_buf && dst_buf) - sh_veu_process(veu, src_buf, dst_buf); + sh_veu_process(veu, &src_buf->vb2_buf, &dst_buf->vb2_buf); } /* ========== video ioctls ========== */ -- 2.19.1