summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel
diff options
context:
space:
mode:
authorAtish Patra2018-08-07 01:17:36 +0200
committerPalmer Dabbelt2018-08-13 17:31:32 +0200
commit4c42ae4f6ab78f9ce3fa7e66de44f666733288da (patch)
treee2f1609b55c979ba955320895c28aa5e5f9d70a0 /arch/riscv/kernel
parentirqchip: add a SiFive PLIC driver (diff)
downloadkernel-qcow2-linux-4c42ae4f6ab78f9ce3fa7e66de44f666733288da.tar.gz
kernel-qcow2-linux-4c42ae4f6ab78f9ce3fa7e66de44f666733288da.tar.xz
kernel-qcow2-linux-4c42ae4f6ab78f9ce3fa7e66de44f666733288da.zip
RISC-V: Fix !CONFIG_SMP compilation error
Enabling both CONFIG_PERF_EVENTS without !CONFIG_SMP generates following compilation error. arch/riscv/include/asm/perf_event.h:80:2: error: expected specifier-qualifier-list before 'irqreturn_t' irqreturn_t (*handle_irq)(int irq_num, void *dev); ^~~~~~~~~~~ Include interrupt.h in proper place to avoid compilation error. Signed-off-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r--arch/riscv/kernel/perf_event.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/riscv/kernel/perf_event.c b/arch/riscv/kernel/perf_event.c
index b0e10c4e9f77..a243fae1c1db 100644
--- a/arch/riscv/kernel/perf_event.c
+++ b/arch/riscv/kernel/perf_event.c
@@ -27,7 +27,6 @@
#include <linux/mutex.h>
#include <linux/bitmap.h>
#include <linux/irq.h>
-#include <linux/interrupt.h>
#include <linux/perf_event.h>
#include <linux/atomic.h>
#include <linux/of.h>