diff options
author | Dao Lu <daolu@rivosinc.com> | 2022-05-24 11:00:30 -0700 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-05-26 10:06:20 +0100 |
commit | b4531b2c4d3f216bbc5d2fa70510f71826e6ec5d (patch) | |
tree | 300816267eb8de6f257561691ab96ab60dc5374c | |
parent | 6f6f384cef27372b746158951c5ba011ca914acd (diff) | |
download | kvmtool-b4531b2c4d3f216bbc5d2fa70510f71826e6ec5d.tar.gz |
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 <alexandru.elisei@arm.com>
Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Dao Lu <daolu@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Fixes: 0febaae00bb6 ("Add cpumask functions")
Link: https://lore.kernel.org/r/20220524180030.1848992-1-daolu@rivosinc.com
Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r-- | riscv/include/asm/kernel.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |