kref_get_unless_zero() was never called by any code.

Signed-off-by: Hauke Mehrtens <[email protected]>
---
 backport/backport-include/linux/kref.h |   26 --------------------------
 1 file changed, 26 deletions(-)
 delete mode 100644 backport/backport-include/linux/kref.h

diff --git a/backport/backport-include/linux/kref.h 
b/backport/backport-include/linux/kref.h
deleted file mode 100644
index d7b6381..0000000
--- a/backport/backport-include/linux/kref.h
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef __BACKPORT_KREF_H
-#define __BACKPORT_KREF_H
-#include_next <linux/kref.h>
-#include <linux/version.h>
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
-#include <linux/atomic.h>
-
-/* This was backported to some kernels (e.g. 3.2.44 and 3.4.41), mask it */
-#define kref_get_unless_zero LINUX_BACKPORT(kref_get_unless_zero)
-
-/* This backports:
- *
- * commit 4b20db3de8dab005b07c74161cb041db8c5ff3a7
- * Author: Thomas Hellstrom <[email protected]>
- * Date:   Tue Nov 6 11:31:49 2012 +0000
- *
- *     kref: Implement kref_get_unless_zero v3
- */
-static inline int __must_check kref_get_unless_zero(struct kref *kref)
-{
-       return atomic_add_unless(&kref->refcount, 1, 0);
-}
-#endif
-
-#endif /* __BACKPORT_KREF_H */
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to