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@xxxxxxxxxxxx> --- backport/backport-include/linux/cache.h | 11 +++++++++++ 1 file changed, 11 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..9ea4a96 --- /dev/null +++ b/backport/backport-include/linux/cache.h @@ -0,0 +1,11 @@ +#ifndef _BACKPORT_CACHE_H +#define _BACKPORT_CACHE_H + +#include_next <linux/cache.h> +#include <linux/version.h> + +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,6,0)) +#define __ro_after_init +#endif + +#endif /* _BACKPORT_CACHE_H */ -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in