From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDB68C4361B for ; Wed, 16 Dec 2020 00:50:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C9B9122DA9 for ; Wed, 16 Dec 2020 00:50:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726110AbgLPAuU (ORCPT ); Tue, 15 Dec 2020 19:50:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725815AbgLPAuR (ORCPT ); Tue, 15 Dec 2020 19:50:17 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CF5FC061793 for ; Tue, 15 Dec 2020 16:49:37 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id t37so16401422pga.7 for ; Tue, 15 Dec 2020 16:49:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MKR4bPj+0an3d7yDezFmd6g6UgR/obAMB14Y7RLspck=; b=yq7gvFhVfsWJo+zmY4hoB9pnJ8uv4hOMEUXxPxzDyY6PT5gUiJ1INcEprFl4kAo2Pv QhBL52aN6JVteOJoWFo5AIGwb3EH7uM9OOnOVIFbLzfMjbk3txQg8ZCuyB4F8aQ1baYl 002JC8jXKFq/zM4bR4nYghem24cu8Ux8/0kEU6Dwr79aEO83WV1+fIxhdJrBDX5FzJUT 1ysRfgre6Vicnrou/JmjzMxM3JvKjZVNMUml9bk143Q775RStdJR5C61EcabGmOwIyRs skmq+rf145/CPRY3iAvBpzDZ2FzbnlE+h2FLn+SbPYxR3hhMrOAPtGQiohr0BcZl+sN7 Uj4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MKR4bPj+0an3d7yDezFmd6g6UgR/obAMB14Y7RLspck=; b=Zvfec4FiAWytWKSvI67W40yJfuMasVuHY3+11I/fm/7NZrZStcD+SPtrPWivNkCVD1 Jl0mR+WrwFyutIMoO559PxruFrSbPAxp6M2xlbsO/nh7GSdg4brjbKWP1i2tmFOlU9FI Lh46t3KM1BKvdDV0Xe/L9MjzfODBsGwNxzvYH6c0GWS5oJk7arp6skABFwl8f30Kfv3o 7MG5RdbCDriftc9lAxKZ63GVYwQMR/XSk0aS9QQkwUY3c3SxEjz/PZihjMtvewGr6y1T w7KC/ko+K64Y+sAfYReG6+0SBqateaABrW1agLODOI+I4ca9YQrIhjBDMfxZelzhPpoD ClUg== X-Gm-Message-State: AOAM532DkmPx5mwaRNcVj/cZJDMCsyfqW4/QF9Z8u/KNyk9yHai3iMeD 0z13TPx1P1WqNg4SlZrHfIw/YI2kg7c1DA== X-Google-Smtp-Source: ABdhPJyVbSdm2BRxuBQ11smLi/qlMz2NC4iswF5AXPde4Afv1/cEnbAlgSBqJzdKLY1agZLuKV0iLg== X-Received: by 2002:a62:e519:0:b029:197:bcec:7c0c with SMTP id n25-20020a62e5190000b0290197bcec7c0cmr30530762pff.63.1608079776360; Tue, 15 Dec 2020 16:49:36 -0800 (PST) Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id k14sm166322pfp.132.2020.12.15.16.49.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 16:49:35 -0800 (PST) From: John Stultz To: lkml Cc: John Stultz , Sumit Semwal , Liam Mark , Laura Abbott , Brian Starkey , Hridya Valsaraju , Suren Baghdasaryan , Sandeep Patil , Daniel Mentz , Chris Goldsworthy , =?UTF-8?q?=C3=98rjan=20Eide?= , Robin Murphy , Ezequiel Garcia , Simon Ser , James Jones , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH] dma-buf: cma_heap: Include linux/vmalloc.h to fix build failures on MIPS Date: Wed, 16 Dec 2020 00:49:31 +0000 Message-Id: <20201216004931.113505-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201215235334.GA227480@roeck-us.net> References: <20201215235334.GA227480@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need to include in order for MIPS to find vmap(), as it doesn't otherwise get included there. Without this patch, one can hit the following build error: drivers/dma-buf/heaps/cma_heap.c: In function 'cma_heap_do_vmap': drivers/dma-buf/heaps/cma_heap.c:195:10: error: implicit declaration of function 'vmap' Cc: Sumit Semwal Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: Suren Baghdasaryan Cc: Sandeep Patil Cc: Daniel Mentz Cc: Chris Goldsworthy Cc: Ørjan Eide Cc: Robin Murphy Cc: Ezequiel Garcia Cc: Simon Ser Cc: James Jones Cc: linux-media@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Fixes: a5d2d29e24be ("dma-buf: heaps: Move heap-helper logic into the cma_heap implementation") Reported-by: Guenter Roeck Signed-off-by: John Stultz --- drivers/dma-buf/heaps/cma_heap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma-buf/heaps/cma_heap.c b/drivers/dma-buf/heaps/cma_heap.c index 5e7c3436310c..3c4e34301172 100644 --- a/drivers/dma-buf/heaps/cma_heap.c +++ b/drivers/dma-buf/heaps/cma_heap.c @@ -20,6 +20,7 @@ #include #include #include +#include struct cma_heap { -- 2.17.1