lkml.org 
[lkml]   [2018]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC PATCH 6/6] x86/alternatives: remove text_poke() return value
Date
at 2:52 AM, Masami Hiramatsu <mhiramat@kernel.org> wrote:

>> --- a/arch/x86/kernel/alternative.c
>> +++ b/arch/x86/kernel/alternative.c
>> @@ -795,7 +795,7 @@ static void text_poke_safe(void *addr, const void *opcode, size_t len,
>> *
>> * Note: Must be called under text_mutex.
>> */
>> -void *text_poke(void *addr, const void *opcode, size_t len)
>> +void text_poke(void *addr, const void *opcode, size_t len)
>> {
>> bool cross_page_boundary = offset_in_page(addr) + len > PAGE_SIZE;
>> struct page *pages[2] = {0};
>
> Could you also remove "return addr;" in this patch ?

Oops. Thanks!

\
 
 \ /
  Last update: 2018-08-29 19:16    [W:0.084 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site