diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-02-22 06:47:05 -0500 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-03-27 08:13:11 -0400 |
commit | fcd9f8315e6af1bbe6878c1084b142211f3d7e1f (patch) | |
tree | e5f9d8ab798c5cc30813026caa059db748f5bf07 | |
parent | 3f251cf0abec2afb6eca67f71380670dd55bdebe (diff) |
perf: arm_spe: include linux/vmalloc.h for vmap()
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.
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[will: add additional missing #includes reported by Mark]
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | drivers/perf/arm_spe_pmu.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c index 51b40aecb776..28bb642af18b 100644 --- a/drivers/perf/arm_spe_pmu.c +++ b/drivers/perf/arm_spe_pmu.c | |||
@@ -23,16 +23,30 @@ | |||
23 | #define DRVNAME PMUNAME "_pmu" | 23 | #define DRVNAME PMUNAME "_pmu" |
24 | #define pr_fmt(fmt) DRVNAME ": " fmt | 24 | #define pr_fmt(fmt) DRVNAME ": " fmt |
25 | 25 | ||
26 | #include <linux/bitops.h> | ||
27 | #include <linux/bug.h> | ||
28 | #include <linux/capability.h> | ||
26 | #include <linux/cpuhotplug.h> | 29 | #include <linux/cpuhotplug.h> |
30 | #include <linux/cpumask.h> | ||
31 | #include <linux/device.h> | ||
32 | #include <linux/errno.h> | ||
27 | #include <linux/interrupt.h> | 33 | #include <linux/interrupt.h> |
28 | #include <linux/irq.h> | 34 | #include <linux/irq.h> |
35 | #include <linux/kernel.h> | ||
36 | #include <linux/list.h> | ||
29 | #include <linux/module.h> | 37 | #include <linux/module.h> |
30 | #include <linux/of_address.h> | 38 | #include <linux/of_address.h> |
31 | #include <linux/of_device.h> | 39 | #include <linux/of_device.h> |
32 | #include <linux/perf_event.h> | 40 | #include <linux/perf_event.h> |
33 | #include <linux/platform_device.h> | 41 | #include <linux/platform_device.h> |
42 | #include <linux/printk.h> | ||
34 | #include <linux/slab.h> | 43 | #include <linux/slab.h> |
44 | #include <linux/smp.h> | ||
45 | #include <linux/vmalloc.h> | ||
35 | 46 | ||
47 | #include <asm/barrier.h> | ||
48 | #include <asm/cpufeature.h> | ||
49 | #include <asm/mmu.h> | ||
36 | #include <asm/sysreg.h> | 50 | #include <asm/sysreg.h> |
37 | 51 | ||
38 | #define ARM_SPE_BUF_PAD_BYTE 0 | 52 | #define ARM_SPE_BUF_PAD_BYTE 0 |