Don't declare __assfail as static

It gets called by dmu_buf_init_user, which is inline but not static.  So it
needs global linkage itself.

Reported by:	GCC-6
MFC after:	17 days
X-MFC-With:	329722
This commit is contained in:
Alan Somers 2018-02-25 14:29:43 +00:00
parent 4f8786afe3
commit 7d3761dc72
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329984
2 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,7 @@
#include <string.h>
#include <zlib.h>
#include <libgen.h>
#include <sys/assfail.h>
#include <sys/spa.h>
#include <sys/stat.h>
#include <sys/processor.h>

View File

@ -48,7 +48,9 @@ void assfail3(const char *, uintmax_t, const char *, uintmax_t, const char *,
#ifndef HAVE_ASSFAIL
extern int aok;
static __inline int
__inline int __assfail(const char *expr, const char *file, int line);
__inline int
__assfail(const char *expr, const char *file, int line)
{