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: 129220 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp1905900edc; Thu, 22 Feb 2018 03:47:40 -0800 (PST) X-Google-Smtp-Source: AH8x225e2l5yS3Inf4npna5DiYimi5701h9THNoacynHQRn8bxFddcO8wvbv/50v+Vs8Uw5/Qrxz X-Received: by 10.101.102.2 with SMTP id w2mr1059872pgv.326.1519300060144; Thu, 22 Feb 2018 03:47:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519300060; cv=none; d=google.com; s=arc-20160816; b=BdZ7hh1eTGAiZ6w3BsJdIIlCAkT8kHDVAewhBQjOfAuqVDY566RA2oa2tR2RgvHzpj oiD04ITzQBG2Ha+IQRN+GEusx2wfgZh7fDqISksRGYtbjs5t1xpPXn2syoejjfxq5WqA tsvA/+mdcRu+wWVTn1nPZnlDRy1cXz3Cyc5Ifj3ZKcWOYkReb1KN+2isyGX4mfgBsqF8 WJVDKCGLK224auuZx6P5tmz+RuIe+U4xUU1qEPmDjyzXn15NU3zPA0o9BxpqWTIy0oYn QexTGeueBQ74fldtIWihRDg7V7YXZys+EUgjIurwX/ZdmHhrrSdeyurX4Uk48VAVltcg J6ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=2RcU9SoWXvaFJZ2EEt4J+TntgkuygoFTudkAO85WTOE=; b=qEIM7qavmo3qaTQsnCH3IQu/sKb+yRkxFWlPybwG11F6GXNCTTJv/LKG9tTHq/ErNq ZsAoE9ALcAupq258bf+zqihqT4rU+jjiIGGmuFcYRuYJ1Ch5gJcgDIFbtkVXxE79Gsla ZSseBgmRKn1la2fTUmurM32u6rAucsUWdA6FtUqqbsFLPxQ6krt54qwgFNzxNOKkmDBD J+ydN2biYoGOhR+AKsi4CoaBBYTPSbZkql9J/z7rKZqW0yJI/ycYRrYEWwaOSsG7aCMr wQVSfduuyUmlHKKup22ziKvBCKr9o6aOS6bsg/LWPNGm0tx8IKbtbo706gES5dHQpD7x spqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x27si883564pgc.25.2018.02.22.03.47.39; Thu, 22 Feb 2018 03:47:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932075AbeBVLrh (ORCPT + 28 others); Thu, 22 Feb 2018 06:47:37 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:45489 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753643AbeBVLrf (ORCPT ); Thu, 22 Feb 2018 06:47:35 -0500 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 Cc: Arnd Bergmann , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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-Mail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q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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(+) -- 2.9.0 Acked-by: Mark Rutland 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