Re: [PATCH v3 2/6] x86/mm/KASLR: Open code unnecessary function get_padding

2019-02-17 Thread Kees Cook
On Sat, Feb 16, 2019 at 6:02 AM Baoquan He wrote: > > It's used only twice and we do bit shifts in the parent function > anyway so it's not like it's hiding some uninteresting detail. > > Suggested-by: Ingo Molnar > Signed-off-by: Baoquan He Acked-by: Kees Cook -Kees > --- > arch/x86/mm/kas

[PATCH v3 2/6] x86/mm/KASLR: Open code unnecessary function get_padding

2019-02-16 Thread Baoquan He
It's used only twice and we do bit shifts in the parent function anyway so it's not like it's hiding some uninteresting detail. Suggested-by: Ingo Molnar Signed-off-by: Baoquan He --- arch/x86/mm/kaslr.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/x86/mm/