Skip to content

Commit 559597b

Browse files
robnbehlendorf
authored andcommitted
zfs_context: remove misc unused
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #17861
1 parent ee0e86c commit 559597b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

include/sys/zfs_context.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ extern "C" {
7777
#include <sys/zfs_context_os.h>
7878
#else /* _KERNEL || _STANDALONE */
7979

80-
#define _SYS_VFS_H
8180
#define _SYS_SUNDDI_H
8281

8382
#include <stdio.h>
@@ -206,7 +205,6 @@ typedef off_t loff_t;
206205
#define CPU_SEQID ((uintptr_t)pthread_self() & (max_ncpus - 1))
207206
#define CPU_SEQID_UNSTABLE CPU_SEQID
208207

209-
#define NN_DIVISOR_1000 (1U << 0)
210208
#define NN_NUMBUF_SZ (6)
211209

212210
extern int highbit64(uint64_t i);
@@ -218,20 +216,6 @@ extern int lowbit64(uint64_t i);
218216
extern int ddi_strtoull(const char *str, char **nptr, int base,
219217
u_longlong_t *result);
220218

221-
/* ZFS Boot Related stuff. */
222-
223-
struct _buf {
224-
intptr_t _fd;
225-
};
226-
227-
struct bootstat {
228-
uint64_t st_size;
229-
};
230-
231-
#define DDI_SLEEP KM_SLEEP
232-
#define ddi_log_sysevent(_a, _b, _c, _d, _e, _f, _g) \
233-
sysevent_post_event(_c, _d, _b, "libzpool", _e, _f)
234-
235219
/*
236220
* Kernel modules
237221
*/

0 commit comments

Comments
 (0)