From: Tomohiro Kusumi Date: Sun, 30 Apr 2017 17:35:07 +0000 (+0300) Subject: Fix "C99 inline functions are not supported" warning on OpenBSD X-Git-Tag: fio-2.20~23 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=0225849f62ec1bb0ca92465476fe909df6fc2393;hp=227d026f88a4264ef717230990c82910ee3619fc Fix "C99 inline functions are not supported" warning on OpenBSD OpenBSD has below compiler warning due to hist_sum() being inlined. It should be fine with no inline (or move it to iolog.h with static if we somehow want to keep it inlined). iolog.c:702: warning: C99 inline functions are not supported; using GNU89 iolog.c:702: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/iolog.c b/iolog.c index 2e8da139..31d674c2 100644 --- a/iolog.c +++ b/iolog.c @@ -696,7 +696,7 @@ void free_log(struct io_log *log) sfree(log); } -inline unsigned long hist_sum(int j, int stride, unsigned int *io_u_plat, +unsigned long hist_sum(int j, int stride, unsigned int *io_u_plat, unsigned int *io_u_plat_last) { unsigned long sum;