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 <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
  • Loading branch information
ryao committed Apr 11, 2014
1 parent 281235d commit ec0fda8
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 @@ -82,8 +82,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 ec0fda8

Please sign in to comment.