[PATCH] backports: kref_get_unless_zero was merged to stable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>

Mask the symbol so no matter where it was backported we can
compile against that kernel tree.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@xxxxxxxxx>
Signed-off-by: Dor Shaish <dor.shaish@xxxxxxxxx>
Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
 backport/backport-include/linux/kref.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/backport/backport-include/linux/kref.h b/backport/backport-include/linux/kref.h
index 40f3c77..d7b6381 100644
--- a/backport/backport-include/linux/kref.h
+++ b/backport/backport-include/linux/kref.h
@@ -5,6 +5,10 @@
 
 #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
-- 
1.8.0

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux