summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-25 15:27:31 -0600
committerAlexander Graf <agraf@suse.de>2016-10-19 09:01:53 +0200
commita0b49bc3341f8f19cbf57a56d110ab0fa8f39267 (patch)
treecdec3f2ade388a094bbea94eafc3870210cf5b1b
parent6fb580d7b41069461093296a0f1059cf294a44dd (diff)
downloadu-boot-imx-a0b49bc3341f8f19cbf57a56d110ab0fa8f39267.zip
u-boot-imx-a0b49bc3341f8f19cbf57a56d110ab0fa8f39267.tar.gz
u-boot-imx-a0b49bc3341f8f19cbf57a56d110ab0fa8f39267.tar.bz2
efi: Use asmlinkage for EFIAPI
This is required for x86 and is also correct for ARM (since it is empty). Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--arch/avr32/include/asm/linkage.h0
-rw-r--r--arch/m68k/include/asm/linkage.h0
-rw-r--r--arch/microblaze/include/asm/linkage.h0
-rw-r--r--arch/mips/include/asm/linkage.h0
-rw-r--r--arch/nios2/include/asm/linkage.h0
-rw-r--r--arch/openrisc/include/asm/linkage.h0
-rw-r--r--arch/sandbox/include/asm/linkage.h0
-rw-r--r--arch/sh/include/asm/linkage.h0
-rw-r--r--arch/sparc/include/asm/linkage.h0
-rw-r--r--include/efi.h3
10 files changed, 2 insertions, 1 deletions
diff --git a/arch/avr32/include/asm/linkage.h b/arch/avr32/include/asm/linkage.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/arch/avr32/include/asm/linkage.h
diff --git a/arch/m68k/include/asm/linkage.h b/arch/m68k/include/asm/linkage.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/arch/m68k/include/asm/linkage.h
diff --git a/arch/microblaze/include/asm/linkage.h b/arch/microblaze/include/asm/linkage.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/arch/microblaze/include/asm/linkage.h
diff --git a/arch/mips/include/asm/linkage.h b/arch/mips/include/asm/linkage.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/arch/mips/include/asm/linkage.h
diff --git a/arch/nios2/include/asm/linkage.h b/arch/nios2/include/asm/linkage.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/arch/nios2/include/asm/linkage.h
diff --git a/arch/openrisc/include/asm/linkage.h b/arch/openrisc/include/asm/linkage.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/arch/openrisc/include/asm/linkage.h
diff --git a/arch/sandbox/include/asm/linkage.h b/arch/sandbox/include/asm/linkage.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/arch/sandbox/include/asm/linkage.h
diff --git a/arch/sh/include/asm/linkage.h b/arch/sh/include/asm/linkage.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/arch/sh/include/asm/linkage.h
diff --git a/arch/sparc/include/asm/linkage.h b/arch/sparc/include/asm/linkage.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/arch/sparc/include/asm/linkage.h
diff --git a/include/efi.h b/include/efi.h
index 5a3b8cf..d07187c 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -15,6 +15,7 @@
#ifndef _EFI_H
#define _EFI_H
+#include <linux/linkage.h>
#include <linux/string.h>
#include <linux/types.h>
@@ -22,7 +23,7 @@
/* EFI uses the Microsoft ABI which is not the default for GCC */
#define EFIAPI __attribute__((ms_abi))
#else
-#define EFIAPI
+#define EFIAPI asmlinkage
#endif
struct efi_device_path;