]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: ip30: ip30-console: Add missing include
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Sun, 16 Jun 2024 17:54:24 +0000 (18:54 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 19 Jun 2024 11:09:35 +0000 (13:09 +0200)
Include linux/processor.h to fix build error:

arch/mips/sgi-ip30/ip30-console.c: In function ‘prom_putchar’:
arch/mips/sgi-ip30/ip30-console.c:21:17: error: implicit declaration of function ‘cpu_relax’ [-Werror=implicit-function-declaration]
   21 |                 cpu_relax();

Cc: stable@vger.kernel.org
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/sgi-ip30/ip30-console.c

index 7c6dcf6e73f701c68595bd3b26677ff8d667b56a..a5f10097b985920f746fe986dfc69bb400d08dd7 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 
 #include <linux/io.h>
+#include <linux/processor.h>
 
 #include <asm/sn/ioc3.h>
 #include <asm/setup.h>