summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Russon <ntfs@flatcap.org>2004-10-19 03:47:51 +0100
committerRichard Russon <ntfs@flatcap.org>2004-10-19 03:47:51 +0100
commit01a238627f19bc4e4fe29ded038cc1ca5b824442 (patch)
treeb866b32653b2c21222beb90785333ee812ac89c1 /include
parent836f98dfaac1b8101f9dbefcfeaa6224f58c8e42 (diff)
parent9c4ffb34c75f682e16aa814132651ac6e754ae0f (diff)
Merge ssh://linux-ntfs@bkbits.net/ntfs-2.6
into flatcap.org:/home/flatcap/backup/bk/ntfs-2.6
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/linkage.h4
-rw-r--r--include/linux/linkage.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-i386/linkage.h b/include/asm-i386/linkage.h
index e48009fd93c7..af3d8571c5c7 100644
--- a/include/asm-i386/linkage.h
+++ b/include/asm-i386/linkage.h
@@ -5,6 +5,10 @@
#define FASTCALL(x) x __attribute__((regparm(3)))
#define fastcall __attribute__((regparm(3)))
+#ifdef CONFIG_REGPARM
+# define prevent_tail_call(ret) __asm__ ("" : "=r" (ret) : "0" (ret))
+#endif
+
#ifdef CONFIG_X86_ALIGNMENT_16
#define __ALIGN .align 16,0x90
#define __ALIGN_STR ".align 16,0x90"
diff --git a/include/linux/linkage.h b/include/linux/linkage.h
index 09955c0ce848..338f7795d8a0 100644
--- a/include/linux/linkage.h
+++ b/include/linux/linkage.h
@@ -14,6 +14,10 @@
#define asmlinkage CPP_ASMLINKAGE
#endif
+#ifndef prevent_tail_call
+# define prevent_tail_call(ret) do { } while (0)
+#endif
+
#ifndef __ALIGN
#define __ALIGN .align 4,0x90
#define __ALIGN_STR ".align 4,0x90"