From patchwork Wed Oct 10 14:46:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Stanislawski X-Patchwork-Id: 12113 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0D25A24189 for ; Wed, 10 Oct 2012 14:50:00 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id AC3DAA18890 for ; Wed, 10 Oct 2012 14:49:59 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so993608iej.11 for ; Wed, 10 Oct 2012 07:49:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:cc:subject:x-beenthere:x-mailman-version :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-gm-message-state; bh=JthtN4dLfRHHRGsRMc9h+zcO+00btgQSA0y/4rPH72k=; b=C9FN4PiOg1sikPUnBeRVj0SotZDXJsZw0wtAREbmiUHb4W+soIHW9JPOAo68AIkZZG lYlkgmYb9UucaXX/VbHx3Qc+T0ZfBSDVPLQR4KBSdaGCrRPooxZ/OXSNUj4ndANRarL8 jjHT2Uzn6HgcGDrUjilb4MwwfDjWsEV94DpSzXiLSldHS6gc2TNdEVkQcnQLNztCoz6o FuBOfEIIQyESRQfA+6K/fa63gBWd5NJqDLbseplxmTetb4G+VHzyqgJ1d/CzZ5vaHlaY q55v8glvezY690H7ONClRLDQceINMpCBypYEc6nY1kWHLztwdShMTX/+Kp372S50hoRm 850A== Received: by 10.50.236.72 with SMTP id us8mr5408495igc.70.1349880599466; Wed, 10 Oct 2012 07:49:59 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp235670igt; Wed, 10 Oct 2012 07:49:58 -0700 (PDT) Received: by 10.205.118.136 with SMTP id fq8mr8063547bkc.24.1349880597688; Wed, 10 Oct 2012 07:49:57 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id he7si2799068bkc.74.2012.10.10.07.49.56; Wed, 10 Oct 2012 07:49:57 -0700 (PDT) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TLxbf-0000x4-3q; Wed, 10 Oct 2012 14:49:55 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TLxbd-0000wz-CG for linaro-mm-sig@lists.linaro.org; Wed, 10 Oct 2012 14:49:53 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBO00AHMMIWUP80@mailout4.samsung.com> for linaro-mm-sig@lists.linaro.org; Wed, 10 Oct 2012 23:49:51 +0900 (KST) X-AuditID: cbfee61b-b7f2b6d000000f14-62-50758b0fa8db Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 0F.DA.03860.F0B85705; Wed, 10 Oct 2012 23:49:51 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MBO002YDME0EC70@mmp1.samsung.com> for linaro-mm-sig@lists.linaro.org; Wed, 10 Oct 2012 23:49:51 +0900 (KST) From: Tomasz Stanislawski To: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Date: Wed, 10 Oct 2012 16:46:23 +0200 Message-id: <1349880405-26049-5-git-send-email-t.stanislaws@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1349880405-26049-1-git-send-email-t.stanislaws@samsung.com> References: <1349880405-26049-1-git-send-email-t.stanislaws@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJMWRmVeSWpSXmKPExsVy+t9jAV3+7tIAg0W39S2+XHnI5MDocfvf Y+YAxigum5TUnMyy1CJ9uwSujINLfzEXTOWsmLltI2sD4zH2LkZODgkBE4lNi76zQNhiEhfu rWfrYuTiEBJYxCjxf/1xdghnLZPEgpZesCo2oI5jSz4zgtgiAg4Sp+/OYgYpYhZYwyzxYuUN NpCEsICbxNWVh4FsDg4WAVWJB6vZQUxeAQ+JN1f8IJbJSzy93wdWzSngKXFh3nRmEFsIqOT/ +s1MExh5FzAyrGIUTS1ILihOSs810itOzC0uzUvXS87P3cQI9vkz6R2MqxosDjEKcDAq8fBW ZJQECLEmlhVX5h5ilOBgVhLhNfUpDRDiTUmsrEotyo8vKs1JLT7EKM3BoiTO2+yREiAkkJ5Y kpqdmlqQWgSTZeLglGpgFPFe1n27aRfPdyNuxybty9tUm5sumck+f8f+fKfIv48rfN+FLrGx unHWMWXP4r1/IydOcHq6w21imk6NfPeK9uWdc4KPphQsc5F+ky2k1fnnx5+jAtKe+mWfwxxy 7y7wK7qgevNY7lHxW1NffZVRd3dvvLph72GRbt2J15/WHUzrOb61g6d6lRJLcUaioRZzUXEi AEWHfeH1AQAA Cc: k.debski@samsung.com, s.nawrocki@samsung.com, pawel@osciak.com, sumit.semwal@ti.com, mchehab@redhat.com, robdclark@gmail.com, linaro-mm-sig@lists.linaro.org, kyungmin.park@samsung.com, laurent.pinchart@ideasonboard.com, airlied@redhat.com, remi@remlab.net Subject: [Linaro-mm-sig] [PATCHv10 04/26] v4l: vb: remove warnings about MEMORY_DMABUF X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQmuHN06duAJG48HInrcNACxjXj2QfTGVA6tSstX+90ivKc48/NVWuHxSxJcvkK59cJaKsK+ From: Sumit Semwal Adding DMABUF memory type causes videobuf to complain about not using it in some switch cases. This patch removes these warnings. Signed-off-by: Sumit Semwal Acked-by: Laurent Pinchart Acked-by: Hans Verkuil --- drivers/media/v4l2-core/videobuf-core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/v4l2-core/videobuf-core.c b/drivers/media/v4l2-core/videobuf-core.c index bf7a326..5449e8a 100644 --- a/drivers/media/v4l2-core/videobuf-core.c +++ b/drivers/media/v4l2-core/videobuf-core.c @@ -335,6 +335,9 @@ static void videobuf_status(struct videobuf_queue *q, struct v4l2_buffer *b, case V4L2_MEMORY_OVERLAY: b->m.offset = vb->boff; break; + case V4L2_MEMORY_DMABUF: + /* DMABUF is not handled in videobuf framework */ + break; } b->flags = 0; @@ -405,6 +408,7 @@ int __videobuf_mmap_setup(struct videobuf_queue *q, break; case V4L2_MEMORY_USERPTR: case V4L2_MEMORY_OVERLAY: + case V4L2_MEMORY_DMABUF: /* nothing */ break; }