Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1014589yba; Thu, 4 Apr 2019 02:27:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRj25JVF810+qlY0obSEmQgKiqALC0NO/dWpqFQrmNX1Ce0NsxwubUwrcXmFGrDNfJgTiR X-Received: by 2002:a62:209c:: with SMTP id m28mr4590430pfj.233.1554370056237; Thu, 04 Apr 2019 02:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554370056; cv=none; d=google.com; s=arc-20160816; b=rxZDrJCcoUdE7JvA/5QsHOy3DsfxcdbWnvgTzn+owmHkiW0ZtB9mdpnnNbMqV5SHW4 Ij04eNt1hTrsC88+25xbVI0k5pP8nO6PvuiiJRwJ3H439FNIQfCS7flyKyfQosKOjdaN mZMrnQs/cmLQc1BaM1V4sK261j38vwHTDHUpkG4yIOMPsl0P4GcMfDrt2+sDTWoHoarg TUk3NYyaCr2iGzA28gJ0hiLvw4Db1ehwMiEDAl6CaWzTxBWlMJ4kFWlhCMgrRKaEYoFg xt+43LE0hTmm+VFbZEg3xMMz196Z/xSA2lfC678icWHXJPM8r2TYRex21GcSL5zZ5qKA R/pw== 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=prKVsAjbzIoznt5rW2/COVc8bv5w3AAC1nsYM9g9738=; b=yh3UoBm/18s6LaxzZ5Ad4GwhgylprbQXYuEkwFXj1WXF56hRzBrBTlPaKE4yNs9WEZ tZx3D4Bg+pHbs5QnQt9ahJnDZwZmsMFkq0R9IbsSTRJmC6dxM4DCQlQxotF4tkVA3v3g RA5lAVTtB8HuYDzsp4w2X94LJp2qQiAidO8RmmBf0Ua2GRiAP2R2KwKCZxVig6BrQ6Wl /pHVOMctVpiYnc+/YZWP1iy//sP8S2cIBBm7vq4r5MuRsmPpqJ2gRssIoyOFdcuJixaw 2/EKXX+4u9HxSyWhCdcTY5269bCtkNsaP3S+Ql3Eo8/TIS7gOz9SAve7sW1JGXgMDj6r nKEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kGC6Uc3J; 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 82si15949915pft.35.2019.04.04.02.27.21; Thu, 04 Apr 2019 02:27:36 -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=kGC6Uc3J; 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 S2387633AbfDDJ0r (ORCPT + 99 others); Thu, 4 Apr 2019 05:26:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:53214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387487AbfDDJM7 (ORCPT ); Thu, 4 Apr 2019 05:12:59 -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 7E48D20820; Thu, 4 Apr 2019 09:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554369179; bh=a0ja9YY5t9YqDggapWousEbNkIe4r3ZnGqyZriMCSQw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kGC6Uc3JWEEV0TWwed4gZ7FqRWuWoZGE1SD1v1jMw8zE6k9KHF04pcu8f8Do4GWnR EmAdypEHHj3OgI0+iizQKd63UKZ4oHxIzUm0Yml1Bntn5rt5RonKEwyq4JaRV3q+Zr UA7tvleHtr/zbtfKdvyusga3uI+QlqvPFskD+Q2Y= 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 5.0 113/246] media: sh_veu: Correct return type for mem2mem buffer helpers Date: Thu, 4 Apr 2019 10:46:53 +0200 Message-Id: <20190404084623.107805629@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084619.236418459@linuxfoundation.org> References: <20190404084619.236418459@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 5.0-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 09ae64a0004c..d277cc674349 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