diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-31 17:13:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-31 17:13:25 -0400 |
commit | 176ab02d4916f09d5d8cb63372d142df4378cdea (patch) | |
tree | 7039b1282e7b34341789a5416fbd7ca5da0e557a /drivers/pnp | |
parent | e06df6a7eae1ab1ef4deb076aeeaed90e948e5c0 (diff) | |
parent | ef178f9238b142cc1020265e176b20d27fd02ba9 (diff) |
Merge branch 'x86-asmlinkage-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 LTO changes from Peter Anvin:
"More infrastructure work in preparation for link-time optimization
(LTO). Most of these changes is to make sure symbols accessed from
assembly code are properly marked as visible so the linker doesn't
remove them.
My understanding is that the changes to support LTO are still not
upstream in binutils, but are on the way there. This patchset should
conclude the x86-specific changes, and remaining patches to actually
enable LTO will be fed through the Kbuild tree (other than keeping up
with changes to the x86 code base, of course), although not
necessarily in this merge window"
* 'x86-asmlinkage-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (25 commits)
Kbuild, lto: Handle basic LTO in modpost
Kbuild, lto: Disable LTO for asm-offsets.c
Kbuild, lto: Add a gcc-ld script to let run gcc as ld
Kbuild, lto: add ld-version and ld-ifversion macros
Kbuild, lto: Drop .number postfixes in modpost
Kbuild, lto, workaround: Don't warn for initcall_reference in modpost
lto: Disable LTO for sys_ni
lto: Handle LTO common symbols in module loader
lto, workaround: Add workaround for initcall reordering
lto: Make asmlinkage __visible
x86, lto: Disable LTO for the x86 VDSO
initconst, x86: Fix initconst mistake in ts5500 code
initconst: Fix initconst mistake in dcdbas
asmlinkage: Make trace_hardirqs_on/off_caller visible
asmlinkage, x86: Fix 32bit memcpy for LTO
asmlinkage Make __stack_chk_failed and memcmp visible
asmlinkage: Mark rwsem functions that can be called from assembler asmlinkage
asmlinkage: Make main_extable_sort_needed visible
asmlinkage, mutex: Mark __visible
asmlinkage: Make trace_hardirq visible
...
Diffstat (limited to 'drivers/pnp')
-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 | ||