From: Emmanuel Grumbach Date: Sun, 5 May 2013 07:31:03 +0000 (+0300) Subject: backports: kref_get_unless_zero was merged to stable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ba93fce9e842d577d6610885af25e38f0737309a;p=openwrt%2Fstaging%2Fblogic.git backports: kref_get_unless_zero was merged to stable Mask the symbol so no matter where it was backported we can compile against that kernel tree. Signed-off-by: Emmanuel Grumbach Signed-off-by: Dor Shaish Signed-off-by: Johannes Berg --- diff --git a/backport/backport-include/linux/kref.h b/backport/backport-include/linux/kref.h index 40f3c778ea17..d7b6381f89e0 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 + +/* 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