[PATCH] powerpc/cacheflush: fix variable set but not used

Michael Ellerman patch-notifications at ellerman.id.au
Thu Jul 4 00:27:03 AEST 2019

On Thu, 2019-06-06 at 13:58:13 UTC, Qian Cai wrote:
> 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 at lca.pw>

Applied to powerpc next, thanks.



More information about the Linuxppc-dev mailing list