* [PATCH 1/2] MIPS: process: Add prototype for function arch_dup_task_struct
@ 2020-09-29 9:30 Pujin Shi
2020-09-29 9:30 ` [PATCH 2/2] MIPS: process: include exec.h header in process.c Pujin Shi
2020-09-30 19:54 ` [PATCH 1/2] MIPS: process: Add prototype for function arch_dup_task_struct Thomas Bogendoerfer
0 siblings, 2 replies; 4+ messages in thread
From: Pujin Shi @ 2020-09-29 9:30 UTC (permalink / raw)
To: Thomas Bogendoerfer
Cc: Yousong Zhou, Paul Burton, Thomas Gleixner, Vincenzo Frascino,
Jiaxun Yang, linux-mips, linux-kernel, 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]
Signed-off-by: Pujin Shi <shipujin.t@gmail.com>
---
arch/mips/include/asm/processor.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/processor.h
index 856e12f6063d..7834e7c0c78a 100644
--- a/arch/mips/include/asm/processor.h
+++ b/arch/mips/include/asm/processor.h
@@ -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
--
2.18.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] MIPS: process: include exec.h header in process.c
2020-09-29 9:30 [PATCH 1/2] MIPS: process: Add prototype for function arch_dup_task_struct Pujin Shi
@ 2020-09-29 9:30 ` Pujin Shi
2020-09-30 19:54 ` Thomas Bogendoerfer
2020-09-30 19:54 ` [PATCH 1/2] MIPS: process: Add prototype for function arch_dup_task_struct Thomas Bogendoerfer
1 sibling, 1 reply; 4+ messages in thread
From: Pujin Shi @ 2020-09-29 9:30 UTC (permalink / raw)
To: Thomas Bogendoerfer
Cc: Yousong Zhou, Paul Burton, Thomas Gleixner, Vincenzo Frascino,
Jiaxun Yang, linux-mips, linux-kernel, Pujin Shi
arch/mips/kernel/process.c:696:15: error: no previous prototype for 'arch_align_stack' [-Werror=missing-prototypes]
Signed-off-by: Pujin Shi <shipujin.t@gmail.com>
---
arch/mips/kernel/process.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
index 37f05c8605c2..75ebd8d7bd5d 100644
--- a/arch/mips/kernel/process.c
+++ b/arch/mips/kernel/process.c
@@ -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)
--
2.18.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] MIPS: process: Add prototype for function arch_dup_task_struct
2020-09-29 9:30 [PATCH 1/2] MIPS: process: Add prototype for function arch_dup_task_struct Pujin Shi
2020-09-29 9:30 ` [PATCH 2/2] MIPS: process: include exec.h header in process.c Pujin Shi
@ 2020-09-30 19:54 ` Thomas Bogendoerfer
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Bogendoerfer @ 2020-09-30 19:54 UTC (permalink / raw)
To: Pujin Shi
Cc: Yousong Zhou, Paul Burton, Thomas Gleixner, Vincenzo Frascino,
Jiaxun Yang, linux-mips, linux-kernel
On Tue, Sep 29, 2020 at 05:30:46PM +0800, Pujin Shi wrote:
> 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]
>
> Signed-off-by: Pujin Shi <shipujin.t@gmail.com>
> ---
> arch/mips/include/asm/processor.h | 1 +
> 1 file changed, 1 insertion(+)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] MIPS: process: include exec.h header in process.c
2020-09-29 9:30 ` [PATCH 2/2] MIPS: process: include exec.h header in process.c Pujin Shi
@ 2020-09-30 19:54 ` Thomas Bogendoerfer
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Bogendoerfer @ 2020-09-30 19:54 UTC (permalink / raw)
To: Pujin Shi
Cc: Yousong Zhou, Paul Burton, Thomas Gleixner, Vincenzo Frascino,
Jiaxun Yang, linux-mips, linux-kernel
On Tue, Sep 29, 2020 at 05:30:47PM +0800, Pujin Shi wrote:
> arch/mips/kernel/process.c:696:15: error: no previous prototype for 'arch_align_stack' [-Werror=missing-prototypes]
>
> Signed-off-by: Pujin Shi <shipujin.t@gmail.com>
> ---
> arch/mips/kernel/process.c | 1 +
> 1 file changed, 1 insertion(+)
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-09-30 20:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 9:30 [PATCH 1/2] MIPS: process: Add prototype for function arch_dup_task_struct Pujin Shi
2020-09-29 9:30 ` [PATCH 2/2] MIPS: process: include exec.h header in process.c Pujin Shi
2020-09-30 19:54 ` Thomas Bogendoerfer
2020-09-30 19:54 ` [PATCH 1/2] MIPS: process: Add prototype for function arch_dup_task_struct Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).