|
@@ -195,7 +195,7 @@ static void __init_or_module add_nops(void *insns, unsigned int len)
|
|
|
|
|
|
extern struct alt_instr __alt_instructions[], __alt_instructions_end[];
|
|
|
extern s32 __smp_locks[], __smp_locks_end[];
|
|
|
-static void *text_poke_early(void *addr, const void *opcode, size_t len);
|
|
|
+void *text_poke_early(void *addr, const void *opcode, size_t len);
|
|
|
|
|
|
/* Replace instructions with better alternatives for this CPU type.
|
|
|
This runs before SMP is initialized to avoid SMP problems with
|
|
@@ -522,7 +522,7 @@ void __init alternative_instructions(void)
|
|
|
* instructions. And on the local CPU you need to be protected again NMI or MCE
|
|
|
* handlers seeing an inconsistent instruction while you patch.
|
|
|
*/
|
|
|
-static void *__init_or_module text_poke_early(void *addr, const void *opcode,
|
|
|
+void *__init_or_module text_poke_early(void *addr, const void *opcode,
|
|
|
size_t len)
|
|
|
{
|
|
|
unsigned long flags;
|