fix EWMA backport
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 2 Apr 2013 22:46:12 +0000 (00:46 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Tue, 2 Apr 2013 22:46:12 +0000 (00:46 +0200)
If backporting to a kernel that already has it, the
symbol mangling shouldn't be done ...

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
backport/include/linux/average.h

index fb0f3975bcac1ba748d8ecfb72646e90fc26acdb..16eff0da3b7fd0bd90991e8715bd53ca33e63351 100644 (file)
@@ -1,6 +1,6 @@
 #include <linux/version.h>
 
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,37))
+#ifndef CPTCFG_BACKPORT_BUILD_AVERAGE
 #include_next <linux/average.h>
 #else
 /* Exponentially weighted moving average (EWMA) */