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: 1537151 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 475DD40135 for ; Tue, 2 Oct 2012 14:28:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753935Ab2JBO20 (ORCPT ); Tue, 2 Oct 2012 10:28:26 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:36528 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753653Ab2JBO2Z (ORCPT ); Tue, 2 Oct 2012 10:28:25 -0400 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 linux-media@vger.kernel.org; Tue, 02 Oct 2012 23:28:24 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-d1-506afa08e8e6 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D3.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 linux-media@vger.kernel.org; Tue, 02 Oct 2012 23:28:24 +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: [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+NgFnrEJMWRmVeSWpSXmKPExsVy+t9jQV2OX1kBBt8fCVn0bNjK6sDo8XmT XABjFJdNSmpOZllqkb5dAlfGkylfGQsucFTcbGxgbGBsY+9i5OSQEDCR2HvlO5QtJnHh3nq2 LkYuDiGB6YwSu07/AUsICaxikmh5VgFiswE1HFvymRHEFhFwkDh9dxYzSAOzwBpmiRcrb7CB JIQFXCVeXt0M1swioCrRcvUIWJxXwF2i+9d2Zoht8hJP7/eBxTkFPCR+PrnAArHMXWLP8ia2 CYy8CxgZVjGKphYkFxQnpeca6hUn5haX5qXrJefnbmIE+/yZ1A7GlQ0WhxgFOBiVeHh3nswM EGJNLCuuzD3EKMHBrCTCa30/K0CINyWxsiq1KD++qDQntfgQozQHi5I4b7NHSoCQQHpiSWp2 ampBahFMlomDU6qBcbXGwy1X4vf5XJPxWsQpfdxJ+nnajuRZYWLT21J96rrcNPgfTasyyJ7A /c732y32k2szPOoP/rm3y+/AdbsZtrMUHsQHJKfffLr9Qmmk00GLijL/mfx3rtQxTGvfnZh+ QMowsjv24bKtqT/VdvmebZ1tfXgbc+2652Fs+teeiS5fso/9X8isu0osxRmJhlrMRcWJAKAh J9j1AQAA 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 --- 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; }