Fix gcc invalid prototype warnings
[zfs.git] / module / zfs / include / sys / refcount.h
index bc3ade8..1752c64 100644 (file)
@@ -40,7 +40,7 @@ extern "C" {
  */
 #define        FTAG ((char *)__func__)
 
-#if defined(DEBUG) || !defined(_KERNEL)
+#ifdef ZFS_DEBUG
 typedef struct reference {
        list_node_t ref_link;
        void *ref_holder;
@@ -67,11 +67,12 @@ int64_t refcount_add(refcount_t *rc, void *holder_tag);
 int64_t refcount_remove(refcount_t *rc, void *holder_tag);
 int64_t refcount_add_many(refcount_t *rc, uint64_t number, void *holder_tag);
 int64_t refcount_remove_many(refcount_t *rc, uint64_t number, void *holder_tag);
+void refcount_transfer(refcount_t *dst, refcount_t *src);
 
 void refcount_init(void);
 void refcount_fini(void);
 
-#else /* DEBUG */
+#else  /* ZFS_DEBUG */
 
 typedef struct refcount {
        uint64_t rc_count;
@@ -97,7 +98,7 @@ typedef struct refcount {
 #define        refcount_init()
 #define        refcount_fini()
 
-#endif /* DEBUG */
+#endif /* ZFS_DEBUG */
 
 #ifdef __cplusplus
 }