backport: add empty inline for wireless_nlevent_flush()
PATCH 1/1 backport: add empty inline for wireless_nlevent_flush()
The function was added in v4.5 kernel. As it can not be backported it is provided for older kernels as an empty inline.
---
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(+)
backport/backport-include/net/iw_handler.h +3 -0
@@ -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 */
Signature · 4 lines
1.9.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in
Hi Arend,
Quoted 20 lines · Arend van Spriel
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 <[email protected]>---
Not sure whetherLINUX_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(+)backport/backport-include/net/iw_handler.h +0
-0
backport/backport-include/net/iw_handler.h iwe_stream_add_point_check(struct iw_request_info · line 29
Quoted 5 lines
backport/backport-include/net/iw_handler.h +1
-0@@ -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 )
This function was added to stable 4.4.6, so we should change this #if accordingly.
Quoted 3 lines
backport/backport-include/net/iw_handler.h +2
-0+static inline void wireless_nlevent_flush (void ) {} +#endif #endif /*
__BACKPORT_IW_HANDLER_H*/
--
Cheers,
Luca.
--
To unsubscribe from this list: send the line "unsubscribe backports" in
Quoted 8 lines · Arend van Spriel
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 <[email protected]>---
Not sure whetherLINUX_BACKPORT()macro should be used. Let me know if that is needed.
Quoted 6 lines
Regards,
Arend--- backport/backport-include/net/iw_handler.h | 3 +++ 1 file changed, 3 insertions(+)
Thank you for the patch, it was applied with a minor modification.
Hauke
--
To unsubscribe from this list: send the line "unsubscribe backports" in