net: fix compile error due to double return type in SOCK_DEBUG

This change “net: fix compile error due to double return type in SOCK_DEBUG” (commit 1183f38) in Linux kernel is authored by Jan Engelhardt <jengelh [at] medozas.de> on Sun May 2 13:42:39 2010 -0700.

Description of "net: fix compile error due to double return type in SOCK_DEBUG"

The change “net: fix compile error due to double return type in SOCK_DEBUG” introduces changes as follows.

net: fix compile error due to double return type in SOCK_DEBUG

Fix this one:
include/net/sock.h: error: two or more data types in declaration specifiers

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

Linux kernel releases containing commit 1183f38

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "net: fix compile error due to double return type in SOCK_DEBUG"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 include/net/sock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/include/net/sock.h b/include/net/sock.h
index b4603cd54fcd..1ad6435f252e 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -74,7 +74,7 @@
 					printk(KERN_DEBUG msg); } while (0)
 #else
 /* Validate arguments and do nothing */
-static void inline int __attribute__ ((format (printf, 2, 3)))
+static inline void __attribute__ ((format (printf, 2, 3)))
 SOCK_DEBUG(struct sock *sk, const char *msg, ...)
 {
 }

The commit for this change in Linux stable tree is 1183f38 (patch).

Last modified: 2020/02/10