Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1030856yba; Thu, 4 Apr 2019 02:50:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOf3FkRRmD7Wu9difXGYUtDOJ10y7Jojh4p/Ul6rJ1/ynRnveQvByaLtj1Ziei1MOTArwd X-Received: by 2002:a63:1c6:: with SMTP id 189mr5020516pgb.22.1554371442371; Thu, 04 Apr 2019 02:50:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554371442; cv=none; d=google.com; s=arc-20160816; b=gS066jaTXBz/FbuvMS6FoVKUPc+aX3g5xZmEM+TvdharS1lG9xSHgZotwWPN96dc7K RrFUcbfsHrebxsN/c3G1FuwRaG+6oDRBf4d9lF9pX+oAyz7s+1m7UfoEXWoQYkk/ylOV CGqrtYUg4YzF3nXDMQSdaUilIZGStHHxNfdSrTDyXrvVAvvhczarRWta8AKg4q9p9VSv z3Nc1Z2xXQmO4ooTl/2flR0k0ZHy4WMKEnHgGWAzJR31amenh1HREpFCD2F2SXOucuBj jz+EepouXHySixImlFHU33z72dZ09U1hsFbgDQiSQQarKSdJbxPbPlhngOhrohsNY4I7 usCA== 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=of5RR6L7mREUjz1Gtpn5A5tBiGymhoO+g6Og1AIFEtM=; b=AYlUYhRoiwL0Dqzz77Qk3I1HzfuSZI0QMi6GGTdJuML202hG4PsupCa8pkAXYzpOml ulLlswd2iydwS9lUXEupJzpePo4sffGTyB8eougACjAOGAzJs/QAlpcXxEN49CFEQwQa TgxfU6a3UoH0pRlQUFBIYF8sMfsXBJ9L+pMTWhrtIIHs+gVFPSCWrUFyLSUtaD7pKL7s MQLcXOOUWMjduqsiztql9YidL7lEDii2lbhgmDJx4LSKz6fIeerhEltLLm1uRpq9ZLIN YVScxKJjlIBmcVSeXXA/HE5BjIaHbSILDJ/vP/fJ4seBl2K8yB/Ckg7WBule/15CJ0sI Y9GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=izzx+dCi; 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 bg12si15884008plb.295.2019.04.04.02.50.27; Thu, 04 Apr 2019 02:50: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=izzx+dCi; 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 S1730751AbfDDJsl (ORCPT + 99 others); Thu, 4 Apr 2019 05:48:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:60774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730235AbfDDI5I (ORCPT ); Thu, 4 Apr 2019 04:57:08 -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 6C5F520882; Thu, 4 Apr 2019 08:57:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368227; bh=PAoyYTfYa6NtOVtSBk5fjLPKR4dTa+PHSH+j0fFnMyc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=izzx+dCi9mvupxxnT0wOvwn0Um81vj47YIk5eEDAxi3eoeujCfoEbRwJTwmQjKTqz N7f9UH6HooYvtYV39//0BFIob3Y2juqabitTgUwTl2oYUB+g2Xw9Zak+xZ4fbW1VDz z9gmEcKpAjOfPi06u+2aBURgQIiMUfmS+Zs7JCkQ= 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.14 059/121] media: sh_veu: Correct return type for mem2mem buffer helpers Date: Thu, 4 Apr 2019 10:47:27 +0200 Message-Id: <20190404084548.455431833@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084545.245659903@linuxfoundation.org> References: <20190404084545.245659903@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.14-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