1
0
Fork 0

avr32: use kbuild.h macros instead of defining macros in asm-offsets.c

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
hifive-unleashed-5.1
Christoph Lameter 2008-04-29 01:04:02 -07:00 committed by Linus Torvalds
parent 32b07679b4
commit 40765200b6
1 changed files with 1 additions and 8 deletions

View File

@ -5,14 +5,7 @@
*/
#include <linux/thread_info.h>
#define DEFINE(sym, val) \
asm volatile("\n->" #sym " %0 " #val : : "i" (val))
#define BLANK() asm volatile("\n->" : : )
#define OFFSET(sym, str, mem) \
DEFINE(sym, offsetof(struct str, mem));
#include <linux/kbuild.h>
void foo(void)
{