Skip to content

Commit

Permalink
Make sure avl_tree.avl_pad is not in kernel module
Browse files Browse the repository at this point in the history
Signed-off-by: Youzhong Yang <[email protected]>
  • Loading branch information
Youzhong Yang committed Jun 18, 2024
1 parent c98295e commit 9cfe048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/sys/avl_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ struct avl_tree {
int (*avl_compar)(const void *, const void *);
size_t avl_offset; /* offsetof(type, avl_link_t field) */
ulong_t avl_numnodes; /* number of nodes in the tree */
#ifndef _KERNEL
#ifndef __KERNEL__
size_t avl_pad; /* For backwards ABI compatibility. */
#endif
};
Expand Down
2 changes: 1 addition & 1 deletion include/sys/spa.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
#ifndef _SYS_SPA_H
#define _SYS_SPA_H

#include <sys/sysmacros.h>
#include <sys/avl.h>
#include <sys/zfs_context.h>
#include <sys/kstat.h>
#include <sys/nvpair.h>
#include <sys/sysmacros.h>
#include <sys/types.h>
#include <sys/fs/zfs.h>
#include <sys/spa_checksum.h>
Expand Down

0 comments on commit 9cfe048

Please sign in to comment.