From 0225849f62ec1bb0ca92465476fe909df6fc2393 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sun, 30 Apr 2017 20:35:07 +0300 Subject: [PATCH] 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 --- iolog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1