From patchwork Thu Jan 5 10:41:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Semwal X-Patchwork-Id: 6066 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 B063223E13 for ; Thu, 5 Jan 2012 10:42:28 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id A3CE2A18066 for ; Thu, 5 Jan 2012 10:42:28 +0000 (UTC) Received: by mail-ey0-f180.google.com with SMTP id c11so311202eaa.11 for ; Thu, 05 Jan 2012 02:42:28 -0800 (PST) Received: by 10.205.132.148 with SMTP id hu20mr530837bkc.96.1325760148465; Thu, 05 Jan 2012 02:42:28 -0800 (PST) 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.205.82.144 with SMTP id ac16cs397778bkc; Thu, 5 Jan 2012 02:42:28 -0800 (PST) Received: by 10.236.175.72 with SMTP id y48mr726910yhl.17.1325760146331; Thu, 05 Jan 2012 02:42:26 -0800 (PST) Received: from devils.ext.ti.com (devils.ext.ti.com. [198.47.26.153]) by mx.google.com with ESMTPS id t39si13262471anh.46.2012.01.05.02.42.25 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Jan 2012 02:42:26 -0800 (PST) Received-SPF: pass (google.com: domain of sumit.semwal@ti.com designates 198.47.26.153 as permitted sender) client-ip=198.47.26.153; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sumit.semwal@ti.com designates 198.47.26.153 as permitted sender) smtp.mail=sumit.semwal@ti.com Received: from dlep26.itg.ti.com ([157.170.170.121]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id q05AgODi011012; Thu, 5 Jan 2012 04:42:24 -0600 Received: from DFLE71.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id q05AgOLN027288; Thu, 5 Jan 2012 04:42:24 -0600 (CST) Received: from dlelxv23.itg.ti.com (172.17.1.198) by dfle71.ent.ti.com (128.247.5.62) with Microsoft SMTP Server id 14.1.323.3; Thu, 5 Jan 2012 04:42:23 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id q05AgNs5006957; Thu, 5 Jan 2012 04:42:23 -0600 Received: from localhost (a0876505ubnlt.apr.dhcp.ti.com [172.24.137.246]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id q05AgKW17114; Thu, 5 Jan 2012 04:42:20 -0600 (CST) From: Sumit Semwal To: , , CC: , , , , , , Sumit Semwal Subject: [RFCv1 3/4] v4l:vb: remove warnings about MEMORY_DMABUF Date: Thu, 5 Jan 2012 16:11:57 +0530 Message-ID: <1325760118-27997-4-git-send-email-sumit.semwal@ti.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1325760118-27997-1-git-send-email-sumit.semwal@ti.com> References: <1325760118-27997-1-git-send-email-sumit.semwal@ti.com> MIME-Version: 1.0 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 --- drivers/media/video/videobuf-core.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c index de4fa4e..b457c8b 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; @@ -411,6 +414,7 @@ int __videobuf_mmap_setup(struct videobuf_queue *q, break; case V4L2_MEMORY_USERPTR: case V4L2_MEMORY_OVERLAY: + case V4L2_MEMORY_DMABUF: /* nothing */ break; }