Skip to content

Commit

Permalink
asmlinkage, pnp: Make variables used from assembler code visible
Browse files Browse the repository at this point in the history
commit a99aa42 upstream.

Mark variables referenced from assembler files visible.

This fixes compile problems with LTO.

Cc: Jaroslav Kysela <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: H. Peter Anvin <[email protected]>
Signed-off-by: Willy Tarreau <[email protected]>
  • Loading branch information
Andi Kleen authored and wtarreau committed Jun 7, 2016
1 parent 6985c64 commit 3f557d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/pnp/pnpbios/bioscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "pnpbios.h"

static struct {
__visible struct {
u16 offset;
u16 segment;
} pnp_bios_callpoint;
Expand All @@ -41,6 +41,7 @@ asmlinkage void pnp_bios_callfunc(void);

__asm__(".text \n"
__ALIGN_STR "\n"
".globl pnp_bios_callfunc\n"
"pnp_bios_callfunc:\n"
" pushl %edx \n"
" pushl %ecx \n"
Expand All @@ -66,9 +67,9 @@ static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092,
* after PnP BIOS oopses.
*/

u32 pnp_bios_fault_esp;
u32 pnp_bios_fault_eip;
u32 pnp_bios_is_utter_crap = 0;
__visible u32 pnp_bios_fault_esp;
__visible u32 pnp_bios_fault_eip;
__visible u32 pnp_bios_is_utter_crap = 0;

static spinlock_t pnp_bios_lock;

Expand Down

0 comments on commit 3f557d2

Please sign in to comment.