Christoph Lameter | 37487a5 | 2008-04-29 01:03:49 -0700 | [diff] [blame] | 1 | #ifndef __LINUX_KBUILD_H |
| 2 | #define __LINUX_KBUILD_H |
| 3 | |
| 4 | #define DEFINE(sym, val) \ |
Jeroen Hofstee | cf0c3e6 | 2017-04-21 15:21:11 +0900 | [diff] [blame] | 5 | asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val)) |
Christoph Lameter | 37487a5 | 2008-04-29 01:03:49 -0700 | [diff] [blame] | 6 | |
Jeroen Hofstee | cf0c3e6 | 2017-04-21 15:21:11 +0900 | [diff] [blame] | 7 | #define BLANK() asm volatile("\n.ascii \"->\"" : : ) |
Christoph Lameter | 37487a5 | 2008-04-29 01:03:49 -0700 | [diff] [blame] | 8 | |
| 9 | #define OFFSET(sym, str, mem) \ |
| 10 | DEFINE(sym, offsetof(struct str, mem)) |
| 11 | |
| 12 | #define COMMENT(x) \ |
Jeroen Hofstee | cf0c3e6 | 2017-04-21 15:21:11 +0900 | [diff] [blame] | 13 | asm volatile("\n.ascii \"->#" x "\"") |
Christoph Lameter | 37487a5 | 2008-04-29 01:03:49 -0700 | [diff] [blame] | 14 | |
| 15 | #endif |