Re: parisc build failures in mainline kernel

From: Linus Torvalds
Date: Thu Nov 04 2021 - 00:20:50 EST


On Wed, Nov 3, 2021 at 8:15 PM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>
> the mainline kernel fails to build almost all 'parisc' images.

All with CONFIG_SMP?

Does this silly patch fix it?

Linus
arch/parisc/include/asm/thread_info.h | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/parisc/include/asm/thread_info.h b/arch/parisc/include/asm/thread_info.h
index 75657c2c54e1..1a58795f785c 100644
--- a/arch/parisc/include/asm/thread_info.h
+++ b/arch/parisc/include/asm/thread_info.h
@@ -9,6 +9,9 @@
struct thread_info {
unsigned long flags; /* thread_info flags (see TIF_*) */
int preempt_count; /* 0=premptable, <0=BUG; will also serve as bh-counter */
+#ifdef CONFIG_SMP
+ unsigned int cpu;
+#endif
};

#define INIT_THREAD_INFO(tsk) \