@@ -265,7 +265,7 @@ static void __init_or_module add_nops(void *insns, unsigned int len)
265
265
266
266
extern struct alt_instr __alt_instructions [], __alt_instructions_end [];
267
267
extern s32 __smp_locks [], __smp_locks_end [];
268
- void * text_poke_early (void * addr , const void * opcode , size_t len );
268
+ void text_poke_early (void * addr , const void * opcode , size_t len );
269
269
270
270
/*
271
271
* Are we looking at a near JMP with a 1 or 4-byte displacement.
@@ -667,8 +667,8 @@ void __init alternative_instructions(void)
667
667
* instructions. And on the local CPU you need to be protected again NMI or MCE
668
668
* handlers seeing an inconsistent instruction while you patch.
669
669
*/
670
- void * __init_or_module text_poke_early (void * addr , const void * opcode ,
671
- size_t len )
670
+ void __init_or_module text_poke_early (void * addr , const void * opcode ,
671
+ size_t len )
672
672
{
673
673
unsigned long flags ;
674
674
@@ -691,7 +691,6 @@ void *__init_or_module text_poke_early(void *addr, const void *opcode,
691
691
* that causes hangs on some VIA CPUs.
692
692
*/
693
693
}
694
- return addr ;
695
694
}
696
695
697
696
__ro_after_init struct mm_struct * poking_mm ;
@@ -893,7 +892,7 @@ NOKPROBE_SYMBOL(poke_int3_handler);
893
892
* replacing opcode
894
893
* - sync cores
895
894
*/
896
- void * text_poke_bp (void * addr , const void * opcode , size_t len , void * handler )
895
+ void text_poke_bp (void * addr , const void * opcode , size_t len , void * handler )
897
896
{
898
897
unsigned char int3 = 0xcc ;
899
898
@@ -935,7 +934,5 @@ void *text_poke_bp(void *addr, const void *opcode, size_t len, void *handler)
935
934
* the writing of the new instruction.
936
935
*/
937
936
bp_patching_in_progress = false;
938
-
939
- return addr ;
940
937
}
941
938
0 commit comments