blob: e7be517aaaf68da7764049044734095966a1e7be [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Christoph Lameter37487a52008-04-29 01:03:49 -07002#ifndef __LINUX_KBUILD_H
3#define __LINUX_KBUILD_H
4
5#define DEFINE(sym, val) \
Jeroen Hofsteecf0c3e62017-04-21 15:21:11 +09006 asm volatile("\n.ascii \"->" #sym " %0 " #val "\"" : : "i" (val))
Christoph Lameter37487a52008-04-29 01:03:49 -07007
Jeroen Hofsteecf0c3e62017-04-21 15:21:11 +09008#define BLANK() asm volatile("\n.ascii \"->\"" : : )
Christoph Lameter37487a52008-04-29 01:03:49 -07009
10#define OFFSET(sym, str, mem) \
11 DEFINE(sym, offsetof(struct str, mem))
12
13#define COMMENT(x) \
Jeroen Hofsteecf0c3e62017-04-21 15:21:11 +090014 asm volatile("\n.ascii \"->#" x "\"")
Christoph Lameter37487a52008-04-29 01:03:49 -070015
16#endif