lkml.org 
[lkml]   [2024]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 11/11] arch/alpha/smc37c669: add missing includes to fix -Wmissing-prototypes
Date
Fixes:

arch/alpha/kernel/smc37c669.c:2467:13: error: no previous prototype for 'SMC669_Init' [-Werror=missing-prototypes]
2467 | void __init SMC669_Init ( int index )
| ^~~~~~~~~~~

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
---
arch/alpha/kernel/smc37c669.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/arch/alpha/kernel/smc37c669.c b/arch/alpha/kernel/smc37c669.c
index ab22ade3dea3..be71ea825690 100644
--- a/arch/alpha/kernel/smc37c669.c
+++ b/arch/alpha/kernel/smc37c669.c
@@ -1,6 +1,9 @@
/*
* SMC 37C669 initialization code
*/
+
+#include "proto.h" // for the SMC669_Init() prototype
+
#include <linux/kernel.h>

#include <linux/mm.h>
--
2.39.2

\
 
 \ /
  Last update: 2024-05-27 15:44    [W:0.063 / U:3.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site