vermagic.h 815 B

123456789101112131415161718192021222324252627282930313233
  1. #include <generated/utsrelease.h>
  2. /* Simply sanity version stamp for modules. */
  3. #ifdef CONFIG_SMP
  4. #define MODULE_VERMAGIC_SMP "SMP "
  5. #else
  6. #define MODULE_VERMAGIC_SMP ""
  7. #endif
  8. #ifdef CONFIG_PREEMPT
  9. #define MODULE_VERMAGIC_PREEMPT "preempt "
  10. #else
  11. #define MODULE_VERMAGIC_PREEMPT ""
  12. #endif
  13. #ifdef CONFIG_MODULE_UNLOAD
  14. #define MODULE_VERMAGIC_MODULE_UNLOAD "mod_unload "
  15. #else
  16. #define MODULE_VERMAGIC_MODULE_UNLOAD ""
  17. #endif
  18. #ifdef CONFIG_MODVERSIONS
  19. #define MODULE_VERMAGIC_MODVERSIONS "modversions "
  20. #else
  21. #define MODULE_VERMAGIC_MODVERSIONS ""
  22. #endif
  23. #ifndef MODULE_ARCH_VERMAGIC
  24. #define MODULE_ARCH_VERMAGIC ""
  25. #endif
  26. #define VERMAGIC_STRING \
  27. UTS_RELEASE " " \
  28. MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT \
  29. MODULE_VERMAGIC_MODULE_UNLOAD MODULE_VERMAGIC_MODVERSIONS \
  30. MODULE_ARCH_VERMAGIC