* [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
@ 2022-05-24 18:00 Dao Lu
2022-05-25 9:08 ` Alexandru Elisei
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Dao Lu @ 2022-05-24 18:00 UTC (permalink / raw)
To: kvm; +Cc: will, kvm-riscv, apatel, Dao Lu, Alexandru Elisei
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
2022-05-24 18:00 [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv") Dao Lu
@ 2022-05-25 9:08 ` Alexandru Elisei
2022-05-25 10:44 ` Anup Patel
2022-05-26 9:17 ` Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: Alexandru Elisei @ 2022-05-25 9:08 UTC (permalink / raw)
To: Dao Lu; +Cc: kvm, will, kvm-riscv, apatel
Hi,
I just noticed this, I think the subject could be improved. The commit id
referenced in the subject is actually "Add cpumask functions", not "Add
asm/kernel.h for riscv".
I think something like this (below) is much more useful for someone doing
git log --oneline to get an idea of what the patch does:
riscv: Add missing asm/kernel.h header
Feel free to reword it if you can come up with something better.
If you want, you can add the fixes tag above your Signed-off-by:
Fixes: 0febaae00bb6 ("Add cpumask functions")
Thanks,
Alex
On Tue, May 24, 2022 at 11:00:30AM -0700, Dao Lu wrote:
> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
2022-05-24 18:00 [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv") Dao Lu
2022-05-25 9:08 ` Alexandru Elisei
@ 2022-05-25 10:44 ` Anup Patel
2022-05-26 9:17 ` Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: Anup Patel @ 2022-05-25 10:44 UTC (permalink / raw)
To: Dao Lu
Cc: KVM General, Will Deacon,
open list:KERNEL VIRTUAL MACHINE FOR RISC-V (KVM/riscv),
Anup Patel, Alexandru Elisei
On Tue, May 24, 2022 at 11:30 PM Dao Lu <daolu@rivosinc.com> wrote:
>
> 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>
I agree with Alexandre, we need a better PATCH subject. Also,
move the Fixes tag from PATCH subject to PATCH description just
above your Signed-off-by.
Otherwise, this looks good to me.
Reviewed-by: Anup Patel <anup@brainfault.org>
Regards,
Anup
> ---
> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
2022-05-24 18:00 [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv") Dao Lu
2022-05-25 9:08 ` Alexandru Elisei
2022-05-25 10:44 ` Anup Patel
@ 2022-05-26 9:17 ` Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: Will Deacon @ 2022-05-26 9:17 UTC (permalink / raw)
To: kvm, Dao Lu
Cc: catalin.marinas, kernel-team, Will Deacon, Alexandru Elisei,
kvm-riscv, apatel
On Tue, 24 May 2022 11:00:30 -0700, Dao Lu wrote:
> 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"
>
>
> [...]
Applied to kvmtool (master), thanks!
[1/1] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")
https://git.kernel.org/will/kvmtool/c/b4531b2c4d3f
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-26 9:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 18:00 [PATCH kvmtool v2] Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv") Dao Lu
2022-05-25 9:08 ` Alexandru Elisei
2022-05-25 10:44 ` Anup Patel
2022-05-26 9:17 ` Will Deacon
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.