]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Convert iounmap() macros to inline functions
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 20 Jan 2020 01:22:17 +0000 (10:22 +0900)
committerRich Felker <dalias@libc.org>
Mon, 1 Jun 2020 18:48:50 +0000 (14:48 -0400)
commitc1bb8d347759b595d5d2f163f8e1d3b175581011
tree28166b61899aecc228130aff988dc3ca4e117679
parentac572bd0af273c5e8653cbdb34ec0bd16991abc2
sh: Convert iounmap() macros to inline functions

Macro iounmap() do nothing, but that results in
unused variable warnings all over the place.
This patch convert it to inline to avoid warning

We will get this warning without this patch

${LINUX}/drivers/thermal/broadcom/ns-thermal.c:78:21: \
  warning: unused variable 'ns_thermal' [-Wunused-variable]
struct ns_thermal *ns_thermal = platform_get_drvdata(pdev);
^~~~~~~~~~

Fixes: 7ccff28a11d53 ("sh: remove __iounmap")
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/include/asm/io.h