Skip to content

Commit

Permalink
[PATCH] uml: remove old UM_FASTCALL, and make the thing work again
Browse files Browse the repository at this point in the history
This was used in the old dark age of 2.4, ARCH_CFLAGS doesn't work any more
since some time, and UM_FASTCALL was never used in 2.6.

Instead, reintroduce the thing more properly now, directly in
include/asm-um/linkage.h.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Oct 31, 2005
1 parent b365157 commit 6a351cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/um/Makefile-i386
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ endif

CFLAGS += -U__$(SUBARCH)__ -U$(SUBARCH)

ifneq ($(CONFIG_GPROF),y)
ARCH_CFLAGS += -DUM_FASTCALL
endif

# First of all, tune CFLAGS for the specific CPU. This actually sets cflags-y.
include $(srctree)/arch/i386/Makefile.cpu

Expand Down
8 changes: 8 additions & 0 deletions include/asm-um/linkage.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@

#include "asm/arch/linkage.h"

#include <linux/config.h>

/* <linux/linkage.h> will pick sane defaults */
#ifdef CONFIG_GPROF
#undef FASTCALL
#undef fastcall
#endif

#endif

0 comments on commit 6a351cf

Please sign in to comment.