From patchwork Tue Aug 14 15:34:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Stanislawski X-Patchwork-Id: 10733 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 2896F23F34 for ; Tue, 14 Aug 2012 15:35:53 +0000 (UTC) Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by fiordland.canonical.com (Postfix) with ESMTP id 20DD4A18586 for ; Tue, 14 Aug 2012 15:35:53 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id dq11so401089wgb.17 for ; Tue, 14 Aug 2012 08:35:53 -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:x-auditid :from:to:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:x-tm-as-mml:cc:subject:x-beenthere :x-mailman-version:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-gm-message-state; bh=+R9rOsztD1T4QGYfPdNHFWyW132inHMaSLi+7tgls6w=; b=OhBzgmOdAQuxZohuCGSW7Ayh25lPoTVUOgne04wTqdt52rUlse6gZIlOLWIwnrbzIp iIwJyW5P24Vf9uUEL1OteZ6OVqygqH/s0cd5KwmbA3Em6Btjh9UtcHWHVDtExKSgK1ip EgmndHf10Z8Lkhe1YB+G4mHnT9OLSNTNWsS31qKcM5q0M26LdX+HgdZfFc+4JCGJneWa n1hsOJi4Y4IXDpCuEVaxdDZJ5G2Gi+IDGbUqZmE4jaEwQscPPUu1DyCCqfXBYrijDKJk VY59up+urRpuujn6PZFExm34gB8UO0VeaEyT3Qv9HevcSKy7arrAXHtFcgO9j+q0Oy+T g6TQ== Received: by 10.50.6.229 with SMTP id e5mr12622206iga.9.1344958552305; Tue, 14 Aug 2012 08:35:52 -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.50.184.200 with SMTP id ew8csp20562igc; Tue, 14 Aug 2012 08:35:51 -0700 (PDT) Received: by 10.204.154.214 with SMTP id p22mr6601495bkw.111.1344958551087; Tue, 14 Aug 2012 08:35:51 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id iq14si4022033bkc.80.2012.08.14.08.35.49; Tue, 14 Aug 2012 08:35:51 -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 1T1J9o-00084R-Ji; Tue, 14 Aug 2012 15:35:48 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T1J9n-00084M-JJ for linaro-mm-sig@lists.linaro.org; Tue, 14 Aug 2012 15:35:47 +0000 Received: from epcpsbgm1.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M8R000ED4NM3Z20@mailout4.samsung.com> for linaro-mm-sig@lists.linaro.org; Wed, 15 Aug 2012 00:35:46 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-5a-502a70527803 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id EB.3D.17335.2507A205; Wed, 15 Aug 2012 00:35:46 +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 <0M8R004J44MBC810@mmp1.samsung.com> for linaro-mm-sig@lists.linaro.org; Wed, 15 Aug 2012 00:35:46 +0900 (KST) From: Tomasz Stanislawski To: linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Date: Tue, 14 Aug 2012 17:34:34 +0200 Message-id: <1344958496-9373-5-git-send-email-t.stanislaws@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1344958496-9373-1-git-send-email-t.stanislaws@samsung.com> References: <1344958496-9373-1-git-send-email-t.stanislaws@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJMWRmVeSWpSXmKPExsVy+t9jAd2gAq0Ag9bTEhZfrjxkcmD0uP3v MXMAYxSXTUpqTmZZapG+XQJXxpMpXxkLLnBU3GxsYGxgbGPvYuTgkBAwkVh9OqaLkRPIFJO4 cG89WxcjF4eQwCJGiRmfu1khnLVMEvdv97OCVLEBNRxb8pkRxBYRcJA4fXcWM0gRs8AhZon9 va/ZQRLCAq4SXY3TwRpYBFQlri5fChbnFXCXeNtxmxVinbzE0/t9bCA2p4CHxMtN3YwgFwkB 1Sz86T+BkXcBI8MqRtHUguSC4qT0XEO94sTc4tK8dL3k/NxNjGCfP5PawbiyweIQowAHoxIP r0KaZoAQa2JZcWXuIUYJDmYlEd6iIK0AId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rzG3l/9hQTS E0tSs1NTC1KLYLJMHJxSDYy6f3amzw9g/L0uuvrkop+Zz1M47gR8k77ncOXYzkWNNj2JC4/K 5rZzPJnBdr6DSzTrgt/iRa/u3isL4zvwq5bx8vWtXEonZie+TF0Xfr9kvTy7fOetTLlZv9UO 7vRdGf+fV1lXZ2aOwuN3u08JmWuI9vlOj5funlJ/vta39of4wQn6k5cpuYcqsRRnJBpqMRcV JwIAP6+N8/UBAAA= X-TM-AS-MML: No Cc: k.debski@samsung.com, pawel@osciak.com, sumit.semwal@ti.com, mchehab@redhat.com, robdclark@gmail.com, linaro-mm-sig@lists.linaro.org, kyungmin.park@samsung.com, dmitriyz@google.com, laurent.pinchart@ideasonboard.com, s.nawrocki@samsung.com, airlied@redhat.com, remi@remlab.net, g.liakhovetski@gmx.de Subject: [Linaro-mm-sig] [PATCHv8 04/26] 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: , MIME-Version: 1.0 Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQmiuLyHV19+TgzsZ77x3DebTLhMgt8hNfXKGZsF6CMdHpI4o3z5KVOSooXM9McPqEBmrB7B 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; }