powerpc/cacheflush: fix variable set but not used
authorQian Cai <cai@lca.pw>
Thu, 6 Jun 2019 13:58:13 +0000 (09:58 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 1 Jul 2019 06:26:55 +0000 (16:26 +1000)
commit04db3ede40ae4fc23a5c4237254c4a53bbe4c1f2
tree3b5d33a744172a44bf152f8e8a299bfeb43e72f3
parent3becd11dffe5d4a7467ebd841172f3e091fbcbd0
powerpc/cacheflush: fix variable set but not used

The powerpc's flush_cache_vmap() is defined as a macro and never use
both of its arguments, so it will generate a compilation warning,

lib/ioremap.c: In function 'ioremap_page_range':
lib/ioremap.c:203:16: warning: variable 'start' set but not used
[-Wunused-but-set-variable]

Fix it by making it an inline function.

Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/cacheflush.h