From patchwork Wed Dec 16 00:49:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 344496 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: 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 (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: 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_Eide?= , 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 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(+) -- 2.17.1 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 {