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: 1574061 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A1D62DFB34 for ; Wed, 10 Oct 2012 14:49:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932204Ab2JJOtx (ORCPT ); Wed, 10 Oct 2012 10:49:53 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:44865 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755248Ab2JJOtw (ORCPT ); Wed, 10 Oct 2012 10:49:52 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBO0035YMIURZQ0@mailout3.samsung.com> for linux-media@vger.kernel.org; Wed, 10 Oct 2012 23:49:51 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-1e-50758b0f26b7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A1.59.03783.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 linux-media@vger.kernel.org; Wed, 10 Oct 2012 23:49:51 +0900 (KST) From: Tomasz Stanislawski To: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: airlied@redhat.com, m.szyprowski@samsung.com, t.stanislaws@samsung.com, kyungmin.park@samsung.com, laurent.pinchart@ideasonboard.com, sumit.semwal@ti.com, daeinki@gmail.com, daniel.vetter@ffwll.ch, robdclark@gmail.com, pawel@osciak.com, linaro-mm-sig@lists.linaro.org, hverkuil@xs4all.nl, remi@remlab.net, subashrp@gmail.com, mchehab@redhat.com, zhangfei.gao@gmail.com, s.nawrocki@samsung.com, k.debski@samsung.com Subject: [PATCHv10 04/26] v4l: vb: remove warnings about MEMORY_DMABUF 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+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jAV3+7tIAgyMbjS16NmxldWD0+LxJ LoAxissmJTUnsyy1SN8ugSvj4NJfzAVTOStmbtvI2sB4jL2LkZNDQsBEYtOOBUwQtpjEhXvr 2boYuTiEBBYxShzbt4kVwlnFJHFo1k42kCo2oI5jSz4zgtgiAg4Sp+/OYgYpYhZYwyzxYuUN sCJhATeJqysPA9kcHCwCqhIPVrODmLwCHhJvrvhBLJOXeHq/D6yaU8BT4sK86cwgthBQyf/1 m5kmMPIuYGRYxSiaWpBcUJyUnmuoV5yYW1yal66XnJ+7iRHs8WdSOxhXNlgcYhTgYFTi4c2I KgkQYk0sK67MPcQowcGsJMJr6lMaIMSbklhZlVqUH19UmpNafIhRmoNFSZy32SMlQEggPbEk NTs1tSC1CCbLxMEp1cA47c/zGwcaO3fNc3/AO0U5tFydSfsbc6U3M1fDbN7zjccSzIP2uX53 mixakLflr/OLGdKJjKa3nZK+n5/B96dH+vuy+h+xSx6furqUxfnU7H0rbqx1t3X9cYHp7ceo H5bi0t+3qO39cXSO8ZmOKVVP17y+1HuloaL7X3wPV15W/G7uI2mXzR5eVmIpzkg01GIuKk4E ACr8MsP0AQAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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 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; }