diff options
-rw-r--r-- | arch/um/Makefile-i386 | 4 | ||||
-rw-r--r-- | include/asm-um/linkage.h | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/arch/um/Makefile-i386 b/arch/um/Makefile-i386 index 4a0b375101eb..aef7c50f8e13 100644 --- a/arch/um/Makefile-i386 +++ b/arch/um/Makefile-i386 | |||
@@ -29,10 +29,6 @@ endif | |||
29 | 29 | ||
30 | CFLAGS += -U__$(SUBARCH)__ -U$(SUBARCH) | 30 | CFLAGS += -U__$(SUBARCH)__ -U$(SUBARCH) |
31 | 31 | ||
32 | ifneq ($(CONFIG_GPROF),y) | ||
33 | ARCH_CFLAGS += -DUM_FASTCALL | ||
34 | endif | ||
35 | |||
36 | # First of all, tune CFLAGS for the specific CPU. This actually sets cflags-y. | 32 | # First of all, tune CFLAGS for the specific CPU. This actually sets cflags-y. |
37 | include $(srctree)/arch/i386/Makefile.cpu | 33 | include $(srctree)/arch/i386/Makefile.cpu |
38 | 34 | ||
diff --git a/include/asm-um/linkage.h b/include/asm-um/linkage.h index 7dfce37adc8b..e3d62dcbd356 100644 --- a/include/asm-um/linkage.h +++ b/include/asm-um/linkage.h | |||
@@ -3,4 +3,12 @@ | |||
3 | 3 | ||
4 | #include "asm/arch/linkage.h" | 4 | #include "asm/arch/linkage.h" |
5 | 5 | ||
6 | #include <linux/config.h> | ||
7 | |||
8 | /* <linux/linkage.h> will pick sane defaults */ | ||
9 | #ifdef CONFIG_GPROF | ||
10 | #undef FASTCALL | ||
11 | #undef fastcall | ||
12 | #endif | ||
13 | |||
6 | #endif | 14 | #endif |