kbuild.h 380 B

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