1
0

004-kconfig_backport_fix.patch 733 B

12345678910111213141516171819202122232425262728
  1. --- a/backport-include/linux/kconfig.h
  2. +++ b/backport-include/linux/kconfig.h
  3. @@ -5,6 +5,8 @@
  4. #include_next <linux/kconfig.h>
  5. #endif
  6. +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)
  7. +
  8. #ifndef __ARG_PLACEHOLDER_1
  9. #define __ARG_PLACEHOLDER_1 0,
  10. #define config_enabled(cfg) _config_enabled(cfg)
  11. @@ -16,6 +18,7 @@
  12. * 3.1 - 3.3 had a broken version of this, so undef
  13. * (they didn't have __ARG_PLACEHOLDER_1)
  14. */
  15. +
  16. #undef IS_ENABLED
  17. #define IS_ENABLED(option) \
  18. (config_enabled(option) || config_enabled(option##_MODULE))
  19. @@ -24,6 +27,8 @@
  20. #undef IS_BUILTIN
  21. #define IS_BUILTIN(option) config_enabled(option)
  22. +#endif
  23. +
  24. #ifndef IS_REACHABLE
  25. /*
  26. * IS_REACHABLE(CONFIG_FOO) evaluates to 1 if the currently compiled