All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] backports: kref_get_unless_zero was merged to stable
@ 2013-05-06  8:39 Johannes Berg
  2013-05-07 13:21 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2013-05-06  8:39 UTC (permalink / raw)
  To: backports; +Cc: Emmanuel Grumbach

From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>

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

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Dor Shaish <dor.shaish@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] backports: kref_get_unless_zero was merged to stable
  2013-05-06  8:39 [PATCH] backports: kref_get_unless_zero was merged to stable Johannes Berg
@ 2013-05-07 13:21 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2013-05-07 13:21 UTC (permalink / raw)
  To: backports; +Cc: Emmanuel Grumbach

On Mon, 2013-05-06 at 10:39 +0200, Johannes Berg wrote:
> From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
> 
> Mask the symbol so no matter where it was backported we can
> compile against that kernel tree.

Applied.

johannes


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-07 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-06  8:39 [PATCH] backports: kref_get_unless_zero was merged to stable Johannes Berg
2013-05-07 13:21 ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.