From 7e5e6782399fbd41f6d7f323d3c5b8d0c72190b3 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 24 Nov 2013 19:49:38 +0100 Subject: [PATCH] backports: remove kref_get_unless_zero() kref_get_unless_zero() was never called by any code. Signed-off-by: Hauke Mehrtens --- 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 d7b6381f89e0..000000000000 --- a/backport/backport-include/linux/kref.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef __BACKPORT_KREF_H -#define __BACKPORT_KREF_H -#include_next -#include - -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0) -#include - -/* 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 - * 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 */ -- 2.30.2