Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1512801pxu; Thu, 17 Dec 2020 11:43:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzz91puk1GElJd+aJe1fzRo6CXdo/xGHS8s/U7o66NlYdjb9H/OE0IrDr+H44oZcHkT3dPH X-Received: by 2002:a17:906:591a:: with SMTP id h26mr633163ejq.174.1608234180374; Thu, 17 Dec 2020 11:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608234180; cv=none; d=google.com; s=arc-20160816; b=SXcLNCSJS8V0bUVXnfkoLvz6uYzCWWz5tM4Rg/Dpb0iOjOEmUbVn24ihZNvUslxYVx wzNPQHxxyqXDvXgIHHxxfm2PH//DJWjmfCXmm6T1hn5uvZmKqxh3Xs9cOLg/PwlrfrRl QefhJak3hoEcwo6VkerBKhcFzXioyexrp9Gl5mjbs6TBCuyPP3/OOOCMZckkOruwtGyY B+hP2rzAA9S4WZU5ovz+KfNqVVkjoN8CRS+Q6BUybJVheVTpI+U7LJa9u/edfLbpXK9N Knmv5x4SICgpc+HyRSJ9TWzDJkGz0jWFy5+fOrs61IVqK1d69kgUCZ61naVzQHTi8nS+ p63g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=q8co+g7fqtv1R652W4I2zAoCxF1rMu+SazXF7/blE/U=; b=CTNrqL/1Ez9Bt9kSRSYfXLfZmxoObRzbkbHx2zE+gD/ubDup0uaHyfqLc+CY4vUVbm 4JVLWaxjB6tG6wrmOo16dCfVsg+25CmH5qSCYUUcUi2aLJK9ubK/bAkEiIg0j4jP5duk sCEXsKQoZ4zU1xLSbWln68CGl/LyfmKtWiEB3ljYpK/ztFRc8F2mmHZwokE3joulZUaU jSaY+HHz2NWn1PBjs8t+zNpIL7W/lxmMGj2CvOuMd6tkAHw6X3fIheBArLzJa/sfzLdQ qmk7n7PLioAr+nNR5QQxinvLoIqn/mPu+ujJCTa3c1S0JNj/3k3557lRTmJEaJHkxPL8 JwOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lzm25lfu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si3330400ejh.264.2020.12.17.11.42.36; Thu, 17 Dec 2020 11:43:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lzm25lfu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729341AbgLQTla (ORCPT + 99 others); Thu, 17 Dec 2020 14:41:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727388AbgLQTla (ORCPT ); Thu, 17 Dec 2020 14:41:30 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9992C061794 for ; Thu, 17 Dec 2020 11:40:49 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id l11so60654944lfg.0 for ; Thu, 17 Dec 2020 11:40:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q8co+g7fqtv1R652W4I2zAoCxF1rMu+SazXF7/blE/U=; b=lzm25lfu8A9lVmaAyBbIOBWJ8Tvv7cGOCF5jF3olsIEHnfbSvmLawXeSOIjV7tAt3A PaDGhDOA8egVr6Opm3LeXG8IGLh/yvvdOZ7OczqcqqgsTQf7V2RWmkIANJlEo05uHiSh o/35BNZtoaSRjejmRFxV/1997Uq3BIzVefTK35yMwUkRjOdvEby1rZ6csXwIo9L9LgAS 8NiwImIyVHoHicSrvPN9GSfKcPzXQ0t++eBLRRvaRrpnmG73ryORqUEckMRC8n6WF4mi sh8hh8BZ+LK9dX0PDiNQ/Vrhneba1Pd3AbfqusoTLjIB3zWRgblXZxaQudfExqYnI2gT NLWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q8co+g7fqtv1R652W4I2zAoCxF1rMu+SazXF7/blE/U=; b=NKcmDlVXWsmyls7Hz7IAXz8cpjvzr+z8gWvJaCSru6hw8HJNiyiJ0QSc1vAba7ub32 mOqwDdj08Tg4LxGiMjlmaKuOMh8QVKXEMyRPtYJf5m+WVZM3ZIryIGqk1fX7g9AkHxt8 R8Ld1ynKd+At3LEEr/QIVxMmLWLSV7rmuLwwUJm0TTotwM/vUGqtqJwXw+lRLehECw12 3kDyf283ymQLjQ7qXrro/bodbcAmwFlCcD/SFOLFFYvocCSXJUwSJUSG1K/TpN6cR6eb XUEW2/ANHWOKPC1zuTkwTa5HxvQuzaJpKtx8Zh9wVwo/O9I1XCDe/TZiyM0TLHYrN0MO dDCg== X-Gm-Message-State: AOAM533zclFgxkpD0m7TUqp3sHbVy0R4Ib0obfeIhadswZFNvvGkDQWL j4rxM3gCv77VFs6i9p9ztL89t983HYkP8MnjElm9yQ== X-Received: by 2002:a2e:3506:: with SMTP id z6mr391593ljz.257.1608234048140; Thu, 17 Dec 2020 11:40:48 -0800 (PST) MIME-Version: 1.0 References: <20201217123053.2166511-1-siyanteng01@gmail.com> In-Reply-To: <20201217123053.2166511-1-siyanteng01@gmail.com> From: John Stultz Date: Thu, 17 Dec 2020 11:40:37 -0800 Message-ID: Subject: Re: [PATCH] cma_heap: fix implicit function declaration To: siyanteng01@gmail.com Cc: Sumit Semwal , Benjamin Gaignard , Liam Mark , Laura Abbott , Brian Starkey , =?UTF-8?Q?Christian_K=C3=B6nig?= , linux-media , dri-devel , "moderated list:DMA BUFFER SHARING FRAMEWORK" , lkml Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 17, 2020 at 4:31 AM wrote: > > From: siyanteng > > When building cma_heap the following error shows up: > > drivers/dma-buf/heaps/cma_heap.c:195:10: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration] > 195 | vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); > | ^~~~ > | kmap > > Use this include: linux-next/include/linux/vmalloc.h > > Signed-off-by: siyanteng Thanks for submitting this! My apologies for the trouble! We already have a similar patch queued here: https://cgit.freedesktop.org/drm/drm-misc/commit/?h=drm-misc-next-fixes&id=8075c3005e4b1efa12dbbf6e84bc412a713de92c so hopefully that will land upstream soon. thanks again! -john