backports: only backport kconfig.h macros for < v3.4
PATCH 1/1 backports: only backport kconfig.h macros for < v3.4
From: Luca Coelho <[email protected]>
In kernel v4.9-rc3, config_enabled() was removed, so we can't use it anymore. The IS_BUILTIN macro is undefined then redefined using config_enabled(), which doesn't work anymore. Additionally, it's not necessary to include all these macros if the kernel is >= v3.4. To fix the config_enabled() problem and to avoid backporting unnecessarily, simply gate the backports on < v3.4.
Change-Id I7682ca0cef166e00dd37529da113ab949dfc5c0a
Signed-off-by Luca Coelho <[email protected]>
--- backport/backport-include/linux/kconfig.h | 2 ++ 1 file changed, 2 insertions(+)
backport/backport-include/linux/kconfig.h +2 -0
@@ -5,6 +5,7 @@#include_next <linux/kconfig.h>#endif +#if LINUX_VERSION_CODE <KERNEL_VERSION (3 ,4 ,0 )#ifndef __ARG_PLACEHOLDER_1#define __ARG_PLACEHOLDER_1 0,#define config_enabled (cfg) _config_enabled(cfg)
@@ -36,3 +37,4 @@#endif #endif +#endif
Signature · 4 lines
2.10.2 -- To unsubscribe from this list: send the line "unsubscribe backports" in