Skip to contentSkip to conversation

MIPS: process: Add prototype for function arch_dup_task_struct

PATCH Applied Pujin Shi 2 participants 4 messages Sep 29, 2020 – Sep 30, 2020 MIPS

lore
Share & tools
lore

Pujin Shi

author
#0 lore raw

PATCH 1/2 MIPS: process: Add prototype for function arch_dup_task_struct

This commit adds a prototype to fix warning at W=1:

arch/mips/kernel/process.c:95:5: error: no previous prototype for 'arch_dup_task_struct' [-Werror=missing-prototypes]

---
 arch/mips/include/asm/processor.h | 1 +
 1 file changed, 1 insertion(+)
arch/mips/include/asm/processor.h +1 -0
index 856e12f6063d..7834e7c0c78a 100644
@@ -29,6 +29,7 @@
  */
 
 extern unsigned int vced_count, vcei_count;
+extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src);
 
 #ifdef CONFIG_32BIT
 #ifdef CONFIG_KVM_GUEST
Signature · 1 line
2.18.1
author
#1 lore raw

PATCH 2/2 MIPS: process: include exec.h header in process.c

arch/mips/kernel/process.c:696:15: error: no previous prototype for 'arch_align_stack' [-Werror=missing-prototypes]

---
 arch/mips/kernel/process.c | 1 +
 1 file changed, 1 insertion(+)
arch/mips/kernel/process.c +1 -0
index 37f05c8605c2..75ebd8d7bd5d 100644
@@ -52,6 +52,7 @@
 #include <asm/inst.h>
 #include <asm/stacktrace.h>
 #include <asm/irq_regs.h>
+#include <asm/exec.h>
 
 #ifdef CONFIG_HOTPLUG_CPU
 void arch_cpu_idle_dead(void)
Signature · 1 line
2.18.1
maintainer Applied
#2 lore raw

Re: [PATCH 2/2] MIPS: process: include exec.h header in process.c

Quoted 6 lines · Pujin Shi

arch/mips/kernel/process.c:696:15: error: no previous prototype for 'arch_align_stack' [-Werror=missing-prototypes]

---
 arch/mips/kernel/process.c | 1 +
 1 file changed, 1 insertion(+)

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]
maintainer Applied
#3 lore raw
In reply to Pujin Shi
Quoted 8 lines · Pujin Shi

This commit adds a prototype to fix warning at W=1:

arch/mips/kernel/process.c:95:5: error: no previous prototype for 'arch_dup_task_struct' [-Werror=missing-prototypes]

---
 arch/mips/include/asm/processor.h | 1 +
 1 file changed, 1 insertion(+)

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]