From: Peter Meerwald Date: Mon, 25 Jun 2012 21:12:15 +0000 (+0200) Subject: staging: iio: fix warning 'static but used in inline function' X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42196d396378f4e4658dbe157d78fd23bce6bbbd;p=linux-beck.git staging: iio: fix warning 'static but used in inline function' iio_utils.h:367:10: warning: ‘iioutils_break_up_name’ is static but used in inline function ‘build_channel_array’ which is not static [enabled by default] Signed-off-by: Peter Meerwald Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/iio/Documentation/iio_utils.h b/drivers/staging/iio/Documentation/iio_utils.h index d9439f8f71fd..9c7a5aa5e2c7 100644 --- a/drivers/staging/iio/Documentation/iio_utils.h +++ b/drivers/staging/iio/Documentation/iio_utils.h @@ -27,7 +27,7 @@ const char *iio_dir = "/sys/bus/iio/devices/"; * @full_name: the full channel name * @generic_name: the output generic channel name **/ -static int iioutils_break_up_name(const char *full_name, +inline int iioutils_break_up_name(const char *full_name, char **generic_name) { char *current;