diff options
author | Andi Kleen <ak@linux.intel.com> | 2014-02-08 02:52:00 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2014-02-13 21:12:27 -0500 |
commit | a99aa42d0253f033cbb85096d3f2bd82201321e6 (patch) | |
tree | 7d3b58c212943acddf5b963485cb997cc6b422ce | |
parent | 40747ffa5aa8d5b99ca46c696234b9194b59e0ac (diff) |
asmlinkage, pnp: Make variables used from assembler code visible
Mark variables referenced from assembler files visible.
This fixes compile problems with LTO.
Cc: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-4-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | drivers/pnp/pnpbios/bioscalls.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/pnp/pnpbios/bioscalls.c b/drivers/pnp/pnpbios/bioscalls.c index 769d265b221b..deb7f4bcdb7b 100644 --- a/drivers/pnp/pnpbios/bioscalls.c +++ b/drivers/pnp/pnpbios/bioscalls.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | #include "pnpbios.h" | 22 | #include "pnpbios.h" |
23 | 23 | ||
24 | static struct { | 24 | __visible struct { |
25 | u16 offset; | 25 | u16 offset; |
26 | u16 segment; | 26 | u16 segment; |
27 | } pnp_bios_callpoint; | 27 | } pnp_bios_callpoint; |
@@ -41,6 +41,7 @@ asmlinkage void pnp_bios_callfunc(void); | |||
41 | 41 | ||
42 | __asm__(".text \n" | 42 | __asm__(".text \n" |
43 | __ALIGN_STR "\n" | 43 | __ALIGN_STR "\n" |
44 | ".globl pnp_bios_callfunc\n" | ||
44 | "pnp_bios_callfunc:\n" | 45 | "pnp_bios_callfunc:\n" |
45 | " pushl %edx \n" | 46 | " pushl %edx \n" |
46 | " pushl %ecx \n" | 47 | " pushl %ecx \n" |
@@ -66,9 +67,9 @@ static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092, | |||
66 | * after PnP BIOS oopses. | 67 | * after PnP BIOS oopses. |
67 | */ | 68 | */ |
68 | 69 | ||
69 | u32 pnp_bios_fault_esp; | 70 | __visible u32 pnp_bios_fault_esp; |
70 | u32 pnp_bios_fault_eip; | 71 | __visible u32 pnp_bios_fault_eip; |
71 | u32 pnp_bios_is_utter_crap = 0; | 72 | __visible u32 pnp_bios_is_utter_crap = 0; |
72 | 73 | ||
73 | static spinlock_t pnp_bios_lock; | 74 | static spinlock_t pnp_bios_lock; |
74 | 75 | ||