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:
parent
4f8786afe3
commit
7d3761dc72
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329984
@ -32,6 +32,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
|
#include <sys/assfail.h>
|
||||||
#include <sys/spa.h>
|
#include <sys/spa.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/processor.h>
|
#include <sys/processor.h>
|
||||||
|
@ -48,7 +48,9 @@ void assfail3(const char *, uintmax_t, const char *, uintmax_t, const char *,
|
|||||||
#ifndef HAVE_ASSFAIL
|
#ifndef HAVE_ASSFAIL
|
||||||
extern int aok;
|
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)
|
__assfail(const char *expr, const char *file, int line)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user