diff mbox series

[fixes] MIPS: ip30: ip30-console: Add missing include

Message ID 20240616-ip30-buildfix-v1-1-0ab2b9aec9f5@flygoat.com (mailing list archive)
State Accepted
Commit 8de4ed75bd14ed197119ac509c6902a8561e0c1c
Headers show
Series [fixes] MIPS: ip30: ip30-console: Add missing include | expand

Commit Message

Jiaxun Yang June 16, 2024, 5:54 p.m. UTC
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>
---
 arch/mips/sgi-ip30/ip30-console.c | 1 +
 1 file changed, 1 insertion(+)


---
base-commit: 6906a84c482f098d31486df8dc98cead21cce2d0
change-id: 20240616-ip30-buildfix-20d62f2d6186

Best regards,

Comments

Thomas Bogendoerfer June 20, 2024, 2:31 p.m. UTC | #1
On Sun, Jun 16, 2024 at 06:54:24PM +0100, Jiaxun Yang wrote:
> 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>
> ---
>  arch/mips/sgi-ip30/ip30-console.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/mips/sgi-ip30/ip30-console.c b/arch/mips/sgi-ip30/ip30-console.c
> index 7c6dcf6e73f7..a5f10097b985 100644
> --- a/arch/mips/sgi-ip30/ip30-console.c
> +++ b/arch/mips/sgi-ip30/ip30-console.c
> @@ -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>
> 
> ---
> base-commit: 6906a84c482f098d31486df8dc98cead21cce2d0
> change-id: 20240616-ip30-buildfix-20d62f2d6186

applied to mips-next.

Thomas.
diff mbox series

Patch

diff --git a/arch/mips/sgi-ip30/ip30-console.c b/arch/mips/sgi-ip30/ip30-console.c
index 7c6dcf6e73f7..a5f10097b985 100644
--- a/arch/mips/sgi-ip30/ip30-console.c
+++ b/arch/mips/sgi-ip30/ip30-console.c
@@ -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>