]> 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)
commit3c1be7b134391ee4d88c840df5cf6124db61f0d3
treeb16fbeaffd73512f5827f135770d124804196885
parentc1bb8d347759b595d5d2f163f8e1d3b175581011
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