summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-06-17 02:06:06 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-06-17 02:06:06 +0000
commit1a59d80a2cc17e57e0808e8b40e5636674544200 (patch)
tree2f18095bd0422b964b765db310503575ffe84246
parent7fd904b6568f8d75f40db5ea6f1cc71aa7797fc3 (diff)
kref_sub() interface was removed from linux and is unused
-rw-r--r--sys/dev/pci/drm/include/linux/kref.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/pci/drm/include/linux/kref.h b/sys/dev/pci/drm/include/linux/kref.h
index 4d16577e749..5f5ca9f47ba 100644
--- a/sys/dev/pci/drm/include/linux/kref.h
+++ b/sys/dev/pci/drm/include/linux/kref.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kref.h,v 1.2 2020/06/08 04:48:14 jsg Exp $ */
+/* $OpenBSD: kref.h,v 1.3 2020/06/17 02:06:05 jsg Exp $ */
/*
* Copyright (c) 2015 Mark Kettenis
*
@@ -68,13 +68,6 @@ kref_put(struct kref *ref, void (*release)(struct kref *ref))
return 0;
}
-static inline void
-kref_sub(struct kref *ref, unsigned int v, void (*release)(struct kref *ref))
-{
- if (atomic_sub_int_nv(&ref->refcount, v) == 0)
- release(ref);
-}
-
static inline int
kref_put_mutex(struct kref *kref, void (*release)(struct kref *kref),
struct rwlock *lock)