Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

openrisc: use kbuild.h instead of defining macros in asm-offset.c

This is modelled on commits such as the one below:

Commit fc1c3a003edb8a6778e64e10ef671a38c76c969e ("sh: use kbuild.h
instead of defining macros in asm-offsets.c") introduced in v2.6.26.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Jonas Bonn <jonas@southpole.se>

authored by

James Hogan and committed by
Jonas Bonn
634bd40a d48444cf

+1 -5
+1 -5
arch/openrisc/kernel/asm-offsets.c
··· 34 34 #include <linux/mm.h> 35 35 #include <linux/io.h> 36 36 #include <linux/thread_info.h> 37 + #include <linux/kbuild.h> 37 38 #include <asm/page.h> 38 39 #include <asm/pgtable.h> 39 40 #include <asm/processor.h> 40 - 41 - #define DEFINE(sym, val) \ 42 - asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 43 - 44 - #define BLANK() asm volatile("\n->" : : ) 45 41 46 42 int main(void) 47 43 {