Commit 40765200 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds
Browse files

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



Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 32b07679
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -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)
{