Skip to content

Commit

Permalink
Declare get_vmalloc_info_fn only when needed
Browse files Browse the repository at this point in the history
A couple of definitions were outside a preprocessor conditional
statement when they should have been inside it. This caused build
failures for some people.

Closes openzfs#291

Reported-by: Aaron Fineman <abyxcos@mnetic.ch>
Signed-off-by: Richard Yao <ryao@gentoo.org>
  • Loading branch information
ryao committed Oct 5, 2013
1 parent 9b830e9 commit 6b7de49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/sys/vmsystm.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ struct vmalloc_info {
};
#endif

#ifndef HAVE_GET_VMALLOC_INFO
typedef void (*get_vmalloc_info_t)(struct vmalloc_info *);
extern get_vmalloc_info_t get_vmalloc_info_fn;
#endif

# define VMEM_ALLOC 0x01
# define VMEM_FREE 0x02
Expand Down

0 comments on commit 6b7de49

Please sign in to comment.