kbuild.h 309 B

12345678910111213141516
  1. #ifndef __LINUX_KBUILD_H
  2. #define __LINUX_KBUILD_H
  3. #define DEFINE(sym, val) \
  4. asm volatile("\n->" #sym " %0 " #val : : "i" (val))
  5. #define BLANK() asm volatile("\n->" : : )
  6. #define OFFSET(sym, str, mem) \
  7. DEFINE(sym, offsetof(struct str, mem))
  8. #define COMMENT(x) \
  9. asm volatile("\n->#" x)
  10. #endif