diff options
| author | Qian Cai <[email protected]> | 2019-03-07 14:40:31 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2019-04-20 12:02:26 +0000 |
| commit | bff25143da0d623a1765bf78dbc82044e46da5a4 (patch) | |
| tree | 7449b64c540a22407b59378f9c0a0e9d428085df /arch/powerpc/lib/code-patching.c | |
| parent | powerpc/mm: move warning from resize_hpt_for_hotplug() (diff) | |
| download | kernel-bff25143da0d623a1765bf78dbc82044e46da5a4.tar.gz kernel-bff25143da0d623a1765bf78dbc82044e46da5a4.zip | |
powerpc/mm: Silence unused-but-set-variable warnings
pte_unmap() compiles away on some powerpc platforms, so silence the
warnings below by making it a static inline function.
mm/memory.c: In function 'copy_pte_range':
mm/memory.c:820:24: warning: variable 'orig_dst_pte' set but not used
mm/memory.c:820:9: warning: variable 'orig_src_pte' set but not used
mm/madvise.c: In function 'madvise_free_pte_range':
mm/madvise.c:318:9: warning: variable 'orig_pte' set but not used
mm/swap_state.c: In function 'swap_ra_info':
mm/swap_state.c:634:15: warning: variable 'orig_pte' set but not used
Suggested-by: Christophe Leroy <[email protected]>
Signed-off-by: Qian Cai <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
