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

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

 



Fixes:

 arch/alpha/lib/checksum.c:45:9: error: no previous prototype for 'csum_tcpudp_magic' [-Werror=missing-prototypes]
    45 | __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr,
       |         ^~~~~~~~~~~~~~~~~

Signed-off-by: Max Kellermann <max.kellermann@xxxxxxxxx>
---
 arch/alpha/lib/checksum.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/alpha/lib/checksum.c b/arch/alpha/lib/checksum.c
index 3f35c3ed6948..66cad8354a44 100644
--- a/arch/alpha/lib/checksum.c
+++ b/arch/alpha/lib/checksum.c
@@ -10,6 +10,8 @@
  *	Rick Gorton	<rick.gorton@xxxxxxxxxxxxxxxxxxx>
  */
  
+#include <asm/checksum.h>
+
 #include <linux/module.h>
 #include <linux/string.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