From patchwork Thu Feb 22 11:47:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10235265 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 332F160349 for ; Thu, 22 Feb 2018 11:47:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 328CA287D3 for ; Thu, 22 Feb 2018 11:47:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 274F8288A8; Thu, 22 Feb 2018 11:47:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9D25F287D3 for ; Thu, 22 Feb 2018 11:47:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=+lL8v+4qIiYylzv9iijupdiI0OqtXmV/LLkEvLXdIOs=; b=bKv +JdaOBcVgIA0N2/8AQgxWpnGDLJ4gSc6dylCBPdV8virumKVfCztXPjtgM+yrvWwYAsVAMYQ+mWT1 6VTsSmSQ02N+ncYbHF5RXZmZDE5Xt/I+C2bknCvQds8oQSlECYTzwFvkF2xMPSwOIGa1ysu4DT6Rw EYTE/L6OgSnJwDMWZpjT+THRtvQ1bTf7bVDnahZqD9ftWBrDfbjU+6wf44u0VQyTfLMR610k5E0kY 7bR4E0sUEJrUrzOvOcSbEqGfKrnKpaKxHqeTr0NYh32UdF5FjpL678Eige+mg5MdubZIHVlUhFbIj XQKFlfmY7UQVJnz8Hw/SuiM2SbrVhng==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eopLe-00048q-9t; Thu, 22 Feb 2018 11:47:38 +0000 Received: from mout.kundenserver.de ([217.72.192.74]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eopLY-00044z-FC for linux-arm-kernel@lists.infradead.org; Thu, 22 Feb 2018 11:47:34 +0000 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0LvkQW-1eh1oH2Rdk-017YJD; Thu, 22 Feb 2018 12:47:17 +0100 From: Arnd Bergmann To: Will Deacon , Mark Rutland Subject: [PATCH] perf: arm_spe: include linux/vmalloc.h for vmap() Date: Thu, 22 Feb 2018 12:47:05 +0100 Message-Id: <20180222114716.1356279-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:kDZ+7QZ7NrD/C7S2P+HPTbK/O8yThCN48zqcbkRYWFT1wzvCxal wXV+xQJVxflzRsNoCHJPLWnjVepmHIDcCk58ZzJfthzhJbwSAyfB+mfSVvwmcQiFNv30a0a xBRiVs+pl5MvnyRZuCiXQb00q9zZo4c6YsjkwD9eZTmANR3UEQ4xhqM3DMH5vtRD9AySxY7 tqcvY3orN936w/sHs7O3Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:KJgSgmJCbs8=:VbO1kYaZbq1cNe8itM+SW8 luFfFcJ7uJjnwjavLtgAN4zIcRhL7rPkDjSbml0Nr9076oNJ7M3lu3R5Qts82LkfM8bTfDB+B Ih0UOLAHvIjP1Cu3k8Ard73QyltRC7jFc4jRZzFMEwxxj7WxP8ywN0jFVZFglk1LJF+PphF9P OIpCcS1u4aL7UAmNMAaYSKHYpHcaSetcGoh7CUifNoW0gyZ8j3uLCG0Gef0n6qLghvoJ5qX/z FdyykW817Y7w8+EF3eeMlhK+IzzA9ERXF7Voz+pe1heB+oppiyuNd97oAqGcgB0GrEn79bCES CgauwLpWOLMaBlBauT03HirsJy4LsWzIK4px5kteJI5mcw7e+kGVi4rgw8WxfveVDijtRyY/K jqOLLa327KeiRaE9BmUIbHL+mGJONJPYG0hnsiUlDlu+pNn6SSQAGGxqrV9dmkFMh2D5NXDuk icZFfanYiCmHrGtsBfv+5Ud0xy+/kv3wGGLed/l/FqV4BGRuUaGF6FfKTPAck3eKbVvMPVOyr cz7lNhFLYek4mwce8hTdXC+XFOwZ6ET+PfLF24cuY4wkOUoSmWCGM2zyH/uKWS8NGi/kFPDDn X6EWSNW6ABGjJoP8DUUwYlMVQzkR7CU/rHgBxyVBzRwB8fyWiep6w/iZAtA9vJgXnez/WljfU DQlvxitdEP8IXfP/229VOZjYgVOxEFlZ63M/76gGvXdS8vNNyAlEV16KjCCttfye/g+yG1Vtv NAyFA/qb6juU5RqXIKJWEFlzc3BCk1czzO141Q== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180222_034732_827932_F80C587D X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Suzuki K Poulose MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On linux-next, I get a build failure in some configurations: drivers/perf/arm_spe_pmu.c: In function 'arm_spe_pmu_setup_aux': drivers/perf/arm_spe_pmu.c:857:14: error: implicit declaration of function 'vmap'; did you mean 'swap'? [-Werror=implicit-function-declaration] buf->base = vmap(pglist, nr_pages, VM_MAP, PAGE_KERNEL); ^~~~ swap drivers/perf/arm_spe_pmu.c:857:37: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MPX'? buf->base = vmap(pglist, nr_pages, VM_MAP, PAGE_KERNEL); ^~~~~~ VM_MPX drivers/perf/arm_spe_pmu.c:857:37: note: each undeclared identifier is reported only once for each function it appears in drivers/perf/arm_spe_pmu.c: In function 'arm_spe_pmu_free_aux': drivers/perf/arm_spe_pmu.c:878:2: error: implicit declaration of function 'vunmap'; did you mean 'iounmap'? [-Werror=implicit-function-declaration] vmap() is declared in linux/vmalloc.h, so we should include that header file. Signed-off-by: Arnd Bergmann Acked-by: Mark Rutland --- I have not bisected what caused this problem, presumably some other header stopped including vmlinux.h. --- drivers/perf/arm_spe_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c index 51b40aecb776..f90672516ada 100644 --- a/drivers/perf/arm_spe_pmu.c +++ b/drivers/perf/arm_spe_pmu.c @@ -32,6 +32,7 @@ #include #include #include +#include #include