From b4531b2c4d3f216bbc5d2fa70510f71826e6ec5d Mon Sep 17 00:00:00 2001 From: Dao Lu Date: Tue, 24 May 2022 11:00:30 -0700 Subject: riscv: Add missing asm/kernel.h header Fixes the following compilation issue: include/linux/kernel.h:5:10: fatal error: asm/kernel.h: No such file or directory 5 | #include "asm/kernel.h" Tested-by: Alexandru Elisei Reviewed-by: Alexandru Elisei Signed-off-by: Dao Lu Reviewed-by: Anup Patel Fixes: 0febaae00bb6 ("Add cpumask functions") Link: https://lore.kernel.org/r/20220524180030.1848992-1-daolu@rivosinc.com Signed-off-by: Will Deacon --- riscv/include/asm/kernel.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 riscv/include/asm/kernel.h diff --git a/riscv/include/asm/kernel.h b/riscv/include/asm/kernel.h new file mode 100644 index 00000000..4ab195fc --- /dev/null +++ b/riscv/include/asm/kernel.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef __ASM_KERNEL_H +#define __ASM_KERNEL_H + +#define NR_CPUS 512 + +#endif /* __ASM_KERNEL_H */ -- cgit 1.2.3-korg