From patchwork Wed May 23 12:10:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Stanislawski X-Patchwork-Id: 8904 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 78EFF23E49 for ; Wed, 23 May 2012 12:10:58 +0000 (UTC) Received: from mail-qc0-f180.google.com (mail-qc0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id 2D18CA187C6 for ; Wed, 23 May 2012 12:10:58 +0000 (UTC) Received: by qcmv28 with SMTP id v28so5750530qcm.11 for ; Wed, 23 May 2012 05:10:57 -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 :mime-version:date:from:in-reply-to:to:message-id:x-mailer :references:cc:subject:x-beenthere:x-mailman-version:precedence :list-id:list-unsubscribe:list-archive:list-post:list-help :list-subscribe:content-type:content-transfer-encoding:sender :errors-to:x-gm-message-state; bh=AwPpAvf5nz0Gyily6AX1GWq9OJ4BbQBjkqcS3AI+oQI=; b=JnbZF0AiFFTMaQ3fpx6I/CFQ2B1Tk+0m6KsktI1PXE/9gX/Gvp/+KP0hZ/wNhEgFkr yqJdiafNVFcsKFOPUoWZ/zmQO4ablBLMMoLjW1Pb/pR0J9R3L9CxJs/AuvvvD+eV+IEa Scly1CZv4KJ6Ucp40ARwiRkWYKrG/wBL4ZdUC85PG9Q5OligDuU53Q/DMtZGZ7uPVZHe CH2o62ji/ibXsneR1y6RB/j2OdV/BCVk3lfHwc/WolF8Hz3P3kuWU2zEcxfRDOkKLTTX 6C0SZEiVB2fPt13LP2q9RhSVo2qiUOWrnYgBe9TdsWUqpxgXZwkWAikh4pYs4cpFhMoK BALg== Received: by 10.50.87.227 with SMTP id bb3mr12558104igb.57.1337775057202; Wed, 23 May 2012 05:10:57 -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.231.35.72 with SMTP id o8csp439849ibd; Wed, 23 May 2012 05:10:55 -0700 (PDT) Received: by 10.14.98.68 with SMTP id u44mr5522691eef.85.1337775054923; Wed, 23 May 2012 05:10:54 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id w20si8121772wew.144.2012.05.23.05.10.50; Wed, 23 May 2012 05:10:54 -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 1SXAOv-00063v-97; Wed, 23 May 2012 12:10:49 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SXAOs-00060x-7t for linaro-mm-sig@lists.linaro.org; Wed, 23 May 2012 12:10:46 +0000 MIME-version: 1.0 Received: from euspt2 ([210.118.77.13]) by mailout3.w1.samsung.com (Sun Java(tm) System Messaging Server 6.3-8.04 (built Jul 29 2009; 32bit)) with ESMTP id <0M4H00A025SG9A60@mailout3.w1.samsung.com> for linaro-mm-sig@lists.linaro.org; Wed, 23 May 2012 13:09:52 +0100 (BST) Received: from linux.samsung.com ([106.116.38.10]) by spt2.w1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0M4H0033Q5TSN0@spt2.w1.samsung.com> for linaro-mm-sig@lists.linaro.org; Wed, 23 May 2012 13:10:40 +0100 (BST) Received: from mcdsrvbld02.digital.local (unknown [106.116.37.23]) by linux.samsung.com (Postfix) with ESMTP id E274927004F; Wed, 23 May 2012 14:21:58 +0200 (CEST) Date: Wed, 23 May 2012 14:10:18 +0200 From: Tomasz Stanislawski In-reply-to: <1337775027-9489-1-git-send-email-t.stanislaws@samsung.com> To: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Message-id: <1337775027-9489-5-git-send-email-t.stanislaws@samsung.com> X-Mailer: git-send-email 1.7.10 References: <1337775027-9489-1-git-send-email-t.stanislaws@samsung.com> Cc: pawel@osciak.com, sumit.semwal@ti.com, mchehab@redhat.com, robdclark@gmail.com, linaro-mm-sig@lists.linaro.org, kyungmin.park@samsung.com, airlied@redhat.com, remi@remlab.net, g.liakhovetski@gmx.de Subject: [Linaro-mm-sig] [PATCHv6 04/13] 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: , Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQkbn+McsajoaCQ9DSIUzj5NSyQ9QJnyXmAJdcdd6DhxxXrBxSIGsjG+jZ2FEhIsushNBRwO 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 ffdf59c..3e3e55f 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; }