]> err.no Git - linux-2.6/blobdiff - include/asm-um/linkage.h
[PATCH] uml: remove old UM_FASTCALL, and make the thing work again
[linux-2.6] / include / asm-um / linkage.h
index 27011652b01510f5a17c68a761c7e7ee668a191e..e3d62dcbd3565685b110bc9e1f3a76b871a365b3 100644 (file)
@@ -1,7 +1,14 @@
-#ifndef __ASM_LINKAGE_H
-#define __ASM_LINKAGE_H
+#ifndef __ASM_UM_LINKAGE_H
+#define __ASM_UM_LINKAGE_H
 
-#define FASTCALL(x)    x __attribute__((regparm(3)))
-#define fastcall        __attribute__((regparm(3)))
+#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