https://github.com/torvalds/linux
Raw File
Tip revision: 520eccdfe187591a51ea9ab4c1a024ae4d0f68d9 authored by Linus Torvalds on 23 July 2017, 23:15:17 UTC
Linux 4.13-rc2
Tip revision: 520eccd
kbuild.h
#ifndef __LINUX_KBUILD_H
#define __LINUX_KBUILD_H

#define DEFINE(sym, val) \
	asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))

#define BLANK() asm volatile("\n.ascii \"->\"" : : )

#define OFFSET(sym, str, mem) \
	DEFINE(sym, offsetof(struct str, mem))

#define COMMENT(x) \
	asm volatile("\n.ascii \"->#" x "\"")

#endif
back to top