Skip to contentSkip to conversation

backport: add empty inline for wireless_nlevent_flush()

PATCH In review Arend van Spriel 3 participants 3 messages Feb 8, 2016 – May 6, 2016

lore
Share & tools
lore
#0 lore raw

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
index 11135c8..03a4fd1 100644
@@ -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
#1 lore raw

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.

---
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 +0 -0
index 11135c8..03a4fd1 100644

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

#2 lore raw
In reply to Arend van Spriel
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.

---
Not sure whether LINUX_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