[PATCH 1/4] x86/mm/cpa: Add __cpa_addr() helper

2018-11-30 Thread Peter Zijlstra
The code to compute the virtual address of a cpa_data is duplicated; introduce a helper before more copies happen. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/mm/pageattr.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) ---

[PATCH 1/4] x86/mm/cpa: Add __cpa_addr() helper

2018-11-30 Thread Peter Zijlstra
The code to compute the virtual address of a cpa_data is duplicated; introduce a helper before more copies happen. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/mm/pageattr.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) ---