Skip to contentSkip to conversation

Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")

PATCH Applied Dao Lu 4 participants 4 messages May 24, 2022 – May 26, 2022

Subsystems (3)
lore
Share & tools
lore

Dao Lu

author
#0 lore raw

PATCH v2 1/1 Fixes: 0febaae00bb6 ("Add asm/kernel.h for riscv")

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"
---
 riscv/include/asm/kernel.h | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 riscv/include/asm/kernel.h
riscv/include/asm/kernel.h new file +8 -0
new file mode 100644
index 0000000..4ab195f
@@ -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 */
Signature · 1 line
2.36.0
#1 lore raw

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

Quoted 31 lines · Dao Lu

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"
---
 riscv/include/asm/kernel.h | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 riscv/include/asm/kernel.h
riscv/include/asm/kernel.h new file +8 -0
new file mode 100644
index 0000000..4ab195f
@@ -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 */
Signature · 1 line
2.36.0
maintainer Reviewed-by on v2 1/1
#2 lore raw
In reply to Dao Lu
Quoted 10 lines · Dao Lu

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"

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.

Regards,
Anup

Quoted 22 lines
---
 riscv/include/asm/kernel.h | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 riscv/include/asm/kernel.h
riscv/include/asm/kernel.h new file +8 -1
new file mode 100644
index 0000000..4ab195f
@@ -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

Applied
#3 lore raw
In reply to Dao Lu
Quoted 8 lines · Dao Lu

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,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev