From patchwork Tue Oct 2 14:27:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Stanislawski X-Patchwork-Id: 1537401 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 5FFF240135 for ; Tue, 2 Oct 2012 14:32:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C8B6A0A8D for ; Tue, 2 Oct 2012 07:32:23 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTP id C93FC9F327 for ; Tue, 2 Oct 2012 07:28:24 -0700 (PDT) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MB9006CTS6X0Z40@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 02 Oct 2012 23:28:24 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-ce-506afa0899a5 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 02.8E.03783.80AFA605; Tue, 02 Oct 2012 23:28:24 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MB9005A7S65K790@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 02 Oct 2012 23:28:24 +0900 (KST) From: Tomasz Stanislawski To: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCHv9 04/25] v4l: vb: remove warnings about MEMORY_DMABUF Date: Tue, 02 Oct 2012 16:27:15 +0200 Message-id: <1349188056-4886-5-git-send-email-t.stanislaws@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1349188056-4886-1-git-send-email-t.stanislaws@samsung.com> References: <1349188056-4886-1-git-send-email-t.stanislaws@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCJMWRmVeSWpSXmKPExsVy+t9jQV2OX1kBBgvW8lpc+fqezYHR4373 caYAxigum5TUnMyy1CJ9uwSujCdTvjIWXOCouNnYwNjA2MbexcjJISFgIrHt3BYmCFtM4sK9 9WxdjFwcQgLTGSUOzWhjhnDWMUnMubuIGaSKDajj2JLPjCC2iICDxOm7s8CKmAXWMEu8WHmD DSQhLOAq8fLqZrAVLAKqEi1Xj4DFeQXcJbp/bWeGWCcv8fR+H1icU8BD4ueTCywgthBQzZ7l TWwTGHkXMDKsYhRNLUguKE5KzzXUK07MLS7NS9dLzs/dxAj2+zOpHYwrGywOMQpwMCrx8O48 mRkgxJpYVlyZe4hRgoNZSYTX+n5WgBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeZo+UACGB9MSS 1OzU1ILUIpgsEwenVAOjNl9LY7bTUv+z4j48E948iF0+f8kFQbG79+9k2xt+1U8rE87sP1LI 3umsuYwzQ73Qe+XyrzE6zuwLnhiFGX9t2zqvv2Xr/AuZFzn3HY2rZPQya/nrzTs3Wm3nDCPL Y7xqJVyr9GZff9pUGmDPvG9BoyunMIegW6RjnIz6c7H/Zy1NYpxMrZRYijMSDbWYi4oTAWay OM/3AQAA Cc: t.stanislaws@samsung.com, s.nawrocki@samsung.com, pawel@osciak.com, mchehab@redhat.com, daniel.vetter@ffwll.ch, subashrp@gmail.com, linaro-mm-sig@lists.linaro.org, kyungmin.park@samsung.com, laurent.pinchart@ideasonboard.com, zhangfei.gao@gmail.com, airlied@redhat.com, remi@remlab.net, m.szyprowski@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org 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 --- drivers/media/video/videobuf-core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c index bf7a326..5449e8a 100644 --- a/drivers/media/video/videobuf-core.c +++ b/drivers/media/video/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; }