Skip to content

Commit e4cce39

Browse files
author
Adrian Chadd
committed
Fix compiling on FreeBSD + gcc - don't assume illmnos bits
This looks like it was once from the illumnos compat code. FreeBSD doesn't have cmn_err as a compiler format attribute, so it definitely errors out. It doesn't show up on LLVM because it doesn't trigger. Signed-off-by: adrian chadd <[email protected]>
1 parent 3c44aed commit e4cce39

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

include/os/freebsd/spl/sys/ccompile.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,8 @@ extern "C" {
5656
#define __sun_attr___VPRINTFLIKE__(__n) \
5757
__attribute__((__format__(printf, __n, 0)))
5858

59-
/*
60-
* Handle the kernel printf routines that can take '%b' too
61-
*/
62-
#if __GNUC_VERSION < 30402
63-
/*
64-
* XX64 at least this doesn't work correctly yet with 3.4.1 anyway!
65-
*/
6659
#define __sun_attr___KPRINTFLIKE__ __sun_attr___PRINTFLIKE__
6760
#define __sun_attr___KVPRINTFLIKE__ __sun_attr___VPRINTFLIKE__
68-
#else
69-
#define __sun_attr___KPRINTFLIKE__(__n) \
70-
__attribute__((__format__(cmn_err, __n, (__n)+1)))
71-
#define __sun_attr___KVPRINTFLIKE__(__n) \
72-
__attribute__((__format__(cmn_err, __n, 0)))
73-
#endif
7461

7562
/*
7663
* This one's pretty obvious -- the function never returns

0 commit comments

Comments
 (0)