From patchwork Fri May 25 09:04:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dave Airlie X-Patchwork-Id: 8961 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 B6DD723F00 for ; Fri, 25 May 2012 09:08:43 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 63A4AA18106 for ; Fri, 25 May 2012 09:08:43 +0000 (UTC) Received: by yhpp61 with SMTP id p61so497726yhp.11 for ; Fri, 25 May 2012 02:08:42 -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:from:to :date:message-id:mime-version:x-scanned-by:x-mime-autoconverted :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=ENat58hGMCaEBrxieuBeVPvKtlYHgEdFoFaxQ3jxrFg=; b=YUBUT3ZZiVUESSA5XKUCRQ7POmdEhKWHLPF7J15PYjNCb/mkwRCMHrw/9bFlDtpt2z eJbjHlOd51aFnjgXs4l13hozAKIQktoBVSbrTYEdhAf74Njk8VPfGoViBSQW3CP4jsEi Wm1YCIZPAzUiX73s6Ss2nrzxOwV0yiVvIgo2Lv02cI+7Ldd+vIMaqJvmbyBkiXYYTpnh o8rUexKPDPdgF8uvk/MQYQJQ9anQm0mDXZQz1EC/Ahlyxq+Me75y36rK7FOFWdv8sdmN MaUOz+NnJEKum9Xscof1+OjqGUmhLKMWFAE6i65fB41Sj2NqIkCGw7jwpTHlvcxIemcE rVPg== Received: by 10.50.87.227 with SMTP id bb3mr1722158igb.57.1337936922457; Fri, 25 May 2012 02:08:42 -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.24.148 with SMTP id v20csp4664ibb; Fri, 25 May 2012 02:08:41 -0700 (PDT) Received: by 10.204.151.81 with SMTP id b17mr1105844bkw.52.1337936920951; Fri, 25 May 2012 02:08:40 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id ea7si3057841bkb.59.2012.05.25.02.08.30; Fri, 25 May 2012 02:08:40 -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 1SXqVW-0005iO-UZ; Fri, 25 May 2012 09:08:27 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1SXqVU-0005iI-D1 for linaro-mm-sig@lists.linaro.org; Fri, 25 May 2012 09:08:25 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4P98MNG010885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 25 May 2012 05:08:22 -0400 Received: from optimus.redhat.com (vpn1-5-244.ams2.redhat.com [10.36.5.244]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q4P98KTQ024340; Fri, 25 May 2012 05:08:21 -0400 From: Dave Airlie To: linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org Date: Fri, 25 May 2012 10:04:17 +0100 Message-Id: <1337936657-24837-1-git-send-email-airlied@gmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id q4P98MNG010885 Subject: [Linaro-mm-sig] [PATCH] dma-buf: fix disabled vmap function 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: ALoCoQnqlB8eeaSXhzZatmIZe5i7c/224il8aXgdVlp4zN1jk6u8GegKEWFwscTPZ1wrwbT94LPG From: Dave Airlie include/linux/dma-buf.h: In function ‘dma_buf_vmap’: include/linux/dma-buf.h:260:1: warning: no return statement in function returning non-void [-Wreturn-type] Reported-by: wfg@linux.intel.com Signed-off-by: Dave Airlie --- include/linux/dma-buf.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/dma-buf.h b/include/linux/dma-buf.h index d8c2865..506bb7b 100644 --- a/include/linux/dma-buf.h +++ b/include/linux/dma-buf.h @@ -257,6 +257,7 @@ static inline void dma_buf_kunmap(struct dma_buf *dmabuf, static inline void *dma_buf_vmap(struct dma_buf *dmabuf) { + return NULL; } static inline void dma_buf_vunmap(struct dma_buf *dmabuf, void *vaddr)