The return type changed from void to int to return some error code.
Some code is now checking the return value which fails on older kernel
versions when the function returns void.

Signed-off-by: Hauke Mehrtens <ha...@hauke-m.de>
---
 backport/backport-include/net/inet_frag.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/backport/backport-include/net/inet_frag.h 
b/backport/backport-include/net/inet_frag.h
index f6bc6f1..055dae1 100644
--- a/backport/backport-include/net/inet_frag.h
+++ b/backport/backport-include/net/inet_frag.h
@@ -64,4 +64,13 @@ static inline void inet_frags_uninit_net(struct netns_frags 
*nf)
 }
 #endif /* < 4.4 && >= 3.9 */
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
+static inline int backport_inet_frags_init_net(struct netns_frags *nf)
+{
+       inet_frags_init_net(nf);
+       return 0;
+}
+#define inet_frags_init_net LINUX_BACKPORT(inet_frags_init_net)
+#endif /* < 4.4 */
+
 #endif /* __BACKPORT__NET_FRAG_H__ */
-- 
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in

Reply via email to