[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    [PATCH] backport: add empty inline for wireless_nlevent_flush()
From:       Arend van Spriel <arend () broadcom ! com>
Date:       2016-02-08 10:42:15
Message-ID: 1454928135-8154-1-git-send-email-arend () broadcom ! com
[Download RAW message or body]

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@broadcom.com>
---
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic