]> git.baikalelectronics.ru Git - kernel.git/commit
x86, asmlinkage, paravirt: Don't rely on local assembler labels
authorAndi Kleen <ak@linux.intel.com>
Tue, 22 Oct 2013 16:07:55 +0000 (09:07 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 30 Jan 2014 06:17:17 +0000 (22:17 -0800)
commit31e3ed9d1b06818948d8c40fb96775708a1c10b2
tree5a1fff8a0d26b7d75e7adbbbd50840ee2246d22a
parent2186f7fd76c2eaf99f372175660098d6d279c22a
x86, asmlinkage, paravirt: Don't rely on local assembler labels

The paravirt patching code assumes that it can reference a
local assembler label between two different top level assembler
statements. This does not work with LTO
where the assembler code may end up in different assembler files.

Replace it with extern / global /asm linkage labels.

This also removes one redundant copy of the macro.

Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1382458079-24450-4-git-send-email-andi@firstfloor.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/paravirt_types.h