Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1025523yba; Thu, 4 Apr 2019 02:42:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1C/7ctuRsQy0dmf/tDA+JttYR6KUcv4Bbg79P7S6h7+MdLMgrv1Wg7vjuRI+1eJolyqtR X-Received: by 2002:a17:902:7885:: with SMTP id q5mr5460386pll.12.1554370950361; Thu, 04 Apr 2019 02:42:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554370950; cv=none; d=google.com; s=arc-20160816; b=c0+Nr7L10G/fBcgh7zd3ry6gIKc1qMRSdUi8yqLI3VT5S0qJhJFGbUqB5nifUuLvwu cDR34qPyaYbVOpySLEUx52XUgT8Y5RCxSkPfrNreFv1f7tI0S8sFzuAHsTdIJJjsVVt0 BIhlre9u2Dd5Yqj37Jj3DIjDolK1U0cRa/BVpy27NF6JPOVNDYq5wbthtFlrlA2kRxeT 03MJ/vyFeqorO+OuMd/wF+h2ER6ZQJG37KrBOKYbQ74xDj5Ua2VYoQDkqacLbtIBzC2z 52r4D4tX3wjK6XyX+4ZugjCuBpaue8gOXnzvx3RO1wrx1mNtMhEjVEbeo03xnFw3H+4B eDcg== 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=qpvoALa2FqeS3rKxgGVtWut4rTJlXPbOmI9adBZ/9cw=; b=OuPkUBHMwQk9O79gqwjRdyK1drfjfHNA9db2v8LCSIuUfG90MvA3bDanLS3ibH15iZ UQ8z4C1MnsAimbC/irom8XZi38YXfoDhrtR3YqbTemGPhfpUJ+NOYHBaYGGpd+bgp7cp iu79THw2LUzt4vv4P3j9Pqs6kBiWc+fZBRiP/eWv9HcSR8lh7q0hsJXVJ8xIFJQBDayx xUbefYWI1snzOsgrNjG9GMNbAqMDgCSOo34kGjFegdGBj3uSavi0uFKEcpOHKGjsS4bG eaH/5Y/ISXaBSQOJjMfWeqdgJcWSKYMm2XJWSPpjevH83ffQpAvOC4B2+obAUuCCSpJB WBAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ymnY0gYe; 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 k126si15790991pgk.109.2019.04.04.02.42.15; Thu, 04 Apr 2019 02:42:30 -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=ymnY0gYe; 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 S1731685AbfDDJCr (ORCPT + 99 others); Thu, 4 Apr 2019 05:02:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:40226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731684AbfDDJCn (ORCPT ); Thu, 4 Apr 2019 05:02:43 -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 6BC9121741; Thu, 4 Apr 2019 09:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368562; bh=oFG3kB/fQtVe+ZHAbgtxA5nlpaftkfr7Sm+gtV9IXQ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ymnY0gYePOJAK6w2FAh4yEokhs4h8c1vS3lSR+NoByE002wpAapRgmZiaPxwi5Ykn gQoC7brS9SEuWuweQ14RAbYim3O8X+XxIU/9MJUDWi4p2RgoKpEwM+CLshpQe+sCp6 IuDqcyEt3wXDUbXQ9Pu5grtQDcjNE3ULUNjCq1cc= 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 085/187] media: sh_veu: Correct return type for mem2mem buffer helpers Date: Thu, 4 Apr 2019 10:47:02 +0200 Message-Id: <20190404084607.048981745@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 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 1d274c64de09..03ee9839a03e 100644 --- a/drivers/media/platform/sh_veu.c +++ b/drivers/media/platform/sh_veu.c @@ -273,13 +273,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