Message ID | 20201216004931.113505-1-john.stultz@linaro.org |
---|---|
State | Accepted |
Commit | 8075c3005e4b1efa12dbbf6e84bc412a713de92c |
Headers | show
Delivered-To: patches@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp4378029ejs; Tue, 15 Dec 2020 16:49:37 -0800 (PST) X-Received: by 2002:a17:90a:dc18:: with SMTP id i24mr997353pjv.118.1608079776837; Tue, 15 Dec 2020 16:49:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608079776; cv=none; d=google.com; s=arc-20160816; b=win6Dhs9bk3yCni+0ekjegByiU+0eyl0m3lbIjZFioYVeD3C3uRk1ahRg6wAQo46xw +zwEeX2QcHqeTTKOZJmn6zu+50sTaygZw7ecBXjGUcC6RksUi2rw1xC7VCHDniMcOFxm JJszQEwXvsl2fCFm+IwdycBLKXvqXCUAuvL7/7nV9y8dSR98OhFi9RyidP4uES/8aqpE 3EtObcS553Amq6WYFxEhn/JI2z6NzzHDhxRG8AnY8FiAuG0kth5ACkZPFon4Bg4TSTeO F2cukJc9TJpI2RbZIQiIZ1hjNsImhwPxImipZaK160vjfE8hWFjJz6PlVlHLCHcquFdy RxoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=MKR4bPj+0an3d7yDezFmd6g6UgR/obAMB14Y7RLspck=; b=p8Nc0PBMpc9SVaWtS0vrElIlgyqHXvrElfKIfvKNr7/iqhxOWVQVwWHVyjjDYNhKqN 5pQcQn+b1voX63WLf/IpJ4REUFjji/bNA6J4Y8oPV1DfP0YOc8aAWminS6nnI15/Gj9b fSk23utHrRF0nohduaZ4bz853Q1+EaxYrTI4iflUyv2HxIdLmEhnh0b1xNyvszIVutj3 +sZ5yaaZ/tKUiarCUBGixt2ZigrNjVi2zAi6M1xANoucLe6+/5FtoUBsxr1VwVkw9fyt uXWkgxw9Hs+kCKPmWpJx3Ftel/aPQHlMSTLyycRLdooLlTsNuvhpzIoDOiYhPSdYTQto 6EnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yq7gvFhV; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <john.stultz@linaro.org> Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id y26sor90479pfp.10.2020.12.15.16.49.36 for <patches@linaro.org> (Google Transport Security); Tue, 15 Dec 2020 16:49:36 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yq7gvFhV; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=GArQCccC1agUyURnAzwsVQ9+q0Fn/PfBIHlrz+4AtYWtpY1XjTPA+AQ5dU3BDo849Q TW+PGzMO4O97D/kiAb7i+RA43kE4z9o3KVHx71pnsPgR8SycHOt0NL5XsPvNa51I1UXP gXMam4YTWyT6xbRYW/h1Qc+cgavTWsIOYyeSn8+83bA5AMeQDbySGFKoYenswb2ge8us OXMdsUgWkw4WoUrjCpGyivsO+3rFbageuvuIPRCHxXcdJl2dEsFFuk6RQ7sTOureIT9b kPspl5nEnj4LMmGA/trc3xkR6aTjmydt3SO9lxkrbx+xM7mi721BlXhJ4Q1mV0BFkuyn qjNw== X-Gm-Message-State: AOAM533JftvAw3OBTfMGPB2uWpv6MXHbBA6QZ7t5H8zbdvfH8utHDSiN 5/F5RE5uoygP2slnE9LZAMRu6c7d 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) Return-Path: <john.stultz@linaro.org> 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 <john.stultz@linaro.org> To: lkml <linux-kernel@vger.kernel.org> Cc: John Stultz <john.stultz@linaro.org>, Sumit Semwal <sumit.semwal@linaro.org>, Liam Mark <lmark@codeaurora.org>, Laura Abbott <labbott@kernel.org>, Brian Starkey <Brian.Starkey@arm.com>, Hridya Valsaraju <hridya@google.com>, Suren Baghdasaryan <surenb@google.com>, Sandeep Patil <sspatil@google.com>, Daniel Mentz <danielmentz@google.com>, Chris Goldsworthy <cgoldswo@codeaurora.org>, =?utf-8?q?=C3=98rjan_Eide?= <orjan.eide@arm.com>, Robin Murphy <robin.murphy@arm.com>, Ezequiel Garcia <ezequiel@collabora.com>, Simon Ser <contact@emersion.fr>, James Jones <jajones@nvidia.com>, 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 |
Series |
dma-buf: cma_heap: Include linux/vmalloc.h to fix build failures on MIPS
|
expand
|
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 <linux/module.h> #include <linux/scatterlist.h> #include <linux/slab.h> +#include <linux/vmalloc.h> struct cma_heap {
We need to include <linux/vmalloc.h> 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 <sumit.semwal@linaro.org> Cc: Liam Mark <lmark@codeaurora.org> Cc: Laura Abbott <labbott@kernel.org> Cc: Brian Starkey <Brian.Starkey@arm.com> Cc: Hridya Valsaraju <hridya@google.com> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Sandeep Patil <sspatil@google.com> Cc: Daniel Mentz <danielmentz@google.com> Cc: Chris Goldsworthy <cgoldswo@codeaurora.org> Cc: Ørjan Eide <orjan.eide@arm.com> Cc: Robin Murphy <robin.murphy@arm.com> Cc: Ezequiel Garcia <ezequiel@collabora.com> Cc: Simon Ser <contact@emersion.fr> Cc: James Jones <jajones@nvidia.com> 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 <linux@roeck-us.net> Signed-off-by: John Stultz <john.stultz@linaro.org> --- drivers/dma-buf/heaps/cma_heap.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1