Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Mar 2017 12:51:57 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314666 - head/sys/dev/ioat
Message-ID:  <201703041251.v24Cpv6D068349@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Sat Mar  4 12:51:57 2017
New Revision: 314666
URL: https://svnweb.freebsd.org/changeset/base/314666

Log:
  ioat: don't specify inline for function with variable argument list
  
  Modern GCC and Clang simply ignore the qualifier, while the old base GCC
  produces a warning (treated as an error in the kernel build).
  
  Approved by:	cem
  MFC after:	5 days

Modified:
  head/sys/dev/ioat/ioat_test.c

Modified: head/sys/dev/ioat/ioat_test.c
==============================================================================
--- head/sys/dev/ioat/ioat_test.c	Sat Mar  4 12:42:52 2017	(r314665)
+++ head/sys/dev/ioat/ioat_test.c	Sat Mar  4 12:51:57 2017	(r314666)
@@ -79,7 +79,7 @@ static int g_thread_index = 1;
 static struct cdev *g_ioat_cdev = NULL;
 
 #define	ioat_test_log(v, ...)	_ioat_test_log((v), "ioat_test: " __VA_ARGS__)
-static inline void _ioat_test_log(int verbosity, const char *fmt, ...);
+static void _ioat_test_log(int verbosity, const char *fmt, ...);
 
 static void
 ioat_test_transaction_destroy(struct test_transaction *tx)
@@ -579,7 +579,7 @@ ioat_test_detach(void)
 	mtx_unlock(&Giant);
 }
 
-static inline void
+static void
 _ioat_test_log(int verbosity, const char *fmt, ...)
 {
 	va_list argp;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703041251.v24Cpv6D068349>