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

List:       linux-backports
Subject:    [PATCH V2] backports: empty define for __ro_after_init
From:       Arend van Spriel <arend.vanspriel () broadcom ! com>
Date:       2016-11-13 19:43:07
Message-ID: 1479066187-26861-1-git-send-email-arend.vanspriel () broadcom ! com
[Download RAW message or body]

nl80211 now uses section qualifier __ro_after_init. However, this
is not available in kernels before v4.6. Neither is the section
itself hence adding an empty define in backports.

Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
---
v2:
- use ifndef instead of version check
- consequently dropped inclusion of version.h
---
 backport/backport-include/linux/cache.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 backport/backport-include/linux/cache.h

diff --git a/backport/backport-include/linux/cache.h b/backport/backport-include/linux/cache.h
new file mode 100644
index 0000000..bd7cdcf
--- /dev/null
+++ b/backport/backport-include/linux/cache.h
@@ -0,0 +1,10 @@
+#ifndef _BACKPORT_CACHE_H
+#define _BACKPORT_CACHE_H
+
+#include_next <linux/cache.h>
+
+#ifndef __ro_after_init
+#define __ro_after_init
+#endif
+
+#endif /* _BACKPORT_CACHE_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