]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ce75a1af9b98e1ee498f2bcda30276748a4daa9
treeb16fbeaffd73512f5827f135770d124804196885
parent7900681f8d2f9b77088f36190afcb3ca4ac99ec8
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