[PATCH] backport: add empty inline for wireless_nlevent_flush()

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

 



The function was added in v4.5 kernel. As it can not be backported
it is provided for older kernels as an empty inline.

Signed-off-by: Arend van Spriel <arend@xxxxxxxxxxxx>
---
Not sure whether LINUX_BACKPORT() macro should be used. Let me
know if that is needed.

Regards,
Arend
---
 backport/backport-include/net/iw_handler.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/backport/backport-include/net/iw_handler.h b/backport/backport-include/net/iw_handler.h
index 11135c8..03a4fd1 100644
--- a/backport/backport-include/net/iw_handler.h
+++ b/backport/backport-include/net/iw_handler.h
@@ -25,4 +25,7 @@ iwe_stream_add_point_check(struct iw_request_info *info, char *stream,
 	return res;
 }
 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0) */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)
+static inline void wireless_nlevent_flush(void) {}
+#endif
 #endif /* __BACKPORT_IW_HANDLER_H */
-- 
1.9.1

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



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux