Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / linux / kbuild.h
blobe7be517aaaf68da7764049044734095966a1e7be
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_KBUILD_H
3 #define __LINUX_KBUILD_H
5 #define DEFINE(sym, val) \
6 asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
8 #define BLANK() asm volatile("\n.ascii \"->\"" : : )
10 #define OFFSET(sym, str, mem) \
11 DEFINE(sym, offsetof(struct str, mem))
13 #define COMMENT(x) \
14 asm volatile("\n.ascii \"->#" x "\"")
16 #endif