[PATCH 11/11] arch/alpha/smc37c669: add missing includes to fix -Wmissing-prototypes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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





[Index of Archives]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux