All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dao Lu <daolu@rivosinc.com>
To: kvm@vger.kernel.org
Cc: will@kernel.org, kvm-riscv@lists.infradead.org,
	apatel@ventanamicro.com, Dao Lu <daolu@rivosinc.com>,
	Alexandru Elisei <alexandru.elisei@arm.com>
Subject: [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
Date: Tue, 24 May 2022 11:00:30 -0700	[thread overview]
Message-ID: <20220524180030.1848992-1-daolu@rivosinc.com> (raw)

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>
---
 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 0000000..4ab195f
--- /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 */
-- 
2.36.0


             reply	other threads:[~2022-05-24 18:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-24 18:00 Dao Lu [this message]
2022-05-25  9:08 ` [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv") Alexandru Elisei
2022-05-25 10:44 ` Anup Patel
2022-05-26  9:17 ` Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220524180030.1848992-1-daolu@rivosinc.com \
    --to=daolu@rivosinc.com \
    --cc=alexandru.elisei@arm.com \
    --cc=apatel@ventanamicro.com \
    --cc=kvm-riscv@lists.infradead.org \
    --cc=kvm@vger.kernel.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.