This is used by the brcmfmac driver since mainline commit 4e70f214. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/backport-include/linux/bcm47xx_nvram.h | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 backport/backport-include/linux/bcm47xx_nvram.h diff --git a/backport/backport-include/linux/bcm47xx_nvram.h b/backport/backport-include/linux/bcm47xx_nvram.h new file mode 100644 index 0000000..0e50fcf --- /dev/null +++ b/backport/backport-include/linux/bcm47xx_nvram.h @@ -0,0 +1,27 @@ +#ifndef __BACKPORTS_BCM47XX_NVRAM_H +#define __BACKPORTS_BCM47XX_NVRAM_H +#include <linux/version.h> + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0) +#include_next <linux/bcm47xx_nvram.h> +#else +#include <linux/types.h> +#include <linux/kernel.h> +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0) + +#ifndef CONFIG_BCM47XX_NVRAM +static inline char *bcm47xx_nvram_get_contents(size_t *val_len) +{ + return NULL; +} + +static inline void bcm47xx_nvram_release_contents(char *nvram) +{ +} +#endif + +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0) */ + +#endif /* __BACKPORTS_BCM47XX_NVRAM_H */ -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe backports" in