sh: Convert ins[bwl]/outs[bwl] macros to inline functions
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 20 Jan 2020 01:22:21 +0000 (10:22 +0900)
committerRich Felker <dalias@libc.org>
Mon, 1 Jun 2020 18:48:50 +0000 (14:48 -0400)
commit3125ddc42487307b59e44c405a3282770475150d
treeb16fbeaffd73512f5827f135770d124804196885
parent4580ba4ad2e6b8ddaada3db61d179d4dfac12047
sh: Convert ins[bwl]/outs[bwl] macros to inline functions

Macro ins[bwl]/outs[bwl] are just calling BUG(), but that results in
unused variable warnings all over the place.
This patch convert macro to inline to avoid warning

We will get this kind of warning without this patch

${LINUX}/drivers/iio/adc/ad7606_par.c:21:23: \
  warning: unused variable 'st' [-Wunused-variable]
struct ad7606_state *st = iio_priv(indio_dev);
^~

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/include/asm/io_noioport.h