commit
57bec529e0
5 changed files with 55 additions and 12 deletions
|
@ -8,10 +8,10 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=alfred
|
PKG_NAME:=alfred
|
||||||
PKG_VERSION:=2017.4
|
PKG_VERSION:=2018.0
|
||||||
PKG_RELEASE:=0
|
PKG_RELEASE:=0
|
||||||
PKG_MD5SUM:=b7bf677b28ad25df2cbc5c0fadaa204c
|
PKG_MD5SUM:=a0610a85cd55b9b1ff30b726dc5c455f
|
||||||
PKG_HASH:=c4ea1afa75628667693d14ee95f08c9943b9f0001b8c442c9a2974f26c75dc88
|
PKG_HASH:=c7cfeb6defc46fe0da9d620afcf89ee36ddc034e31dee58cc239b757a77cf257
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
||||||
|
|
|
@ -9,10 +9,10 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=batctl
|
PKG_NAME:=batctl
|
||||||
|
|
||||||
PKG_VERSION:=2017.4
|
PKG_VERSION:=2018.0
|
||||||
PKG_RELEASE:=0
|
PKG_RELEASE:=0
|
||||||
PKG_MD5SUM:=142d5b0b4a9efebfe781ed28beb7d7ce
|
PKG_MD5SUM:=cfdad757be0a2001158410366f6b9a45
|
||||||
PKG_HASH:=047d6aac4da51dbfb5721df0bbc9b1699c8431e4707157f939c6d6c4f214e464
|
PKG_HASH:=5a970835b6c85e92a4faf2c40d70664cf80637749c30b898d0c84cfe94f1eff4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
||||||
|
|
|
@ -9,10 +9,10 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=batman-adv
|
PKG_NAME:=batman-adv
|
||||||
|
|
||||||
PKG_VERSION:=2017.4
|
PKG_VERSION:=2018.0
|
||||||
PKG_RELEASE:=0
|
PKG_RELEASE:=0
|
||||||
PKG_MD5SUM:=5d5a845725ccc89255c9e8a714db4b75
|
PKG_MD5SUM:=c39d67cdb5509bf638efc9083e0dd41e
|
||||||
PKG_HASH:=8a50ffacd2bd5b65b2987eb2ae06fb9338c6af46935ec38ba869cca545719a4c
|
PKG_HASH:=4826f838e8a2914a9470da25ea2f17f6325c464a130093b20dc7fb4e93f7576c
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
|
||||||
|
|
|
@ -333,6 +333,16 @@ static inline void timer_setup(struct timer_list *timer,
|
||||||
container_of(callback_timer, typeof(*var), timer_fieldname)
|
container_of(callback_timer, typeof(*var), timer_fieldname)
|
||||||
|
|
||||||
#endif /* !from_timer */
|
#endif /* !from_timer */
|
||||||
|
|
||||||
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 16, 0)
|
||||||
|
|
||||||
|
#ifdef __CHECK_POLL
|
||||||
|
typedef unsigned __bitwise __poll_t;
|
||||||
|
#else
|
||||||
|
typedef unsigned __poll_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* < KERNEL_VERSION(4, 16, 0) */
|
||||||
|
|
||||||
/* <DECLARE_EWMA> */
|
/* <DECLARE_EWMA> */
|
||||||
|
|
||||||
|
@ -392,7 +402,7 @@ static inline void timer_setup(struct timer_list *timer,
|
||||||
static inline void ewma_##name##_add(struct ewma_##name *e, \
|
static inline void ewma_##name##_add(struct ewma_##name *e, \
|
||||||
unsigned long val) \
|
unsigned long val) \
|
||||||
{ \
|
{ \
|
||||||
unsigned long internal = ACCESS_ONCE(e->internal); \
|
unsigned long internal = READ_ONCE(e->internal); \
|
||||||
unsigned long weight_rcp = ilog2(_weight_rcp); \
|
unsigned long weight_rcp = ilog2(_weight_rcp); \
|
||||||
unsigned long precision = _precision; \
|
unsigned long precision = _precision; \
|
||||||
\
|
\
|
||||||
|
@ -401,10 +411,10 @@ static inline void timer_setup(struct timer_list *timer,
|
||||||
BUILD_BUG_ON((_precision) > 30); \
|
BUILD_BUG_ON((_precision) > 30); \
|
||||||
BUILD_BUG_ON_NOT_POWER_OF_2(_weight_rcp); \
|
BUILD_BUG_ON_NOT_POWER_OF_2(_weight_rcp); \
|
||||||
\
|
\
|
||||||
ACCESS_ONCE(e->internal) = internal ? \
|
WRITE_ONCE(e->internal, internal ? \
|
||||||
(((internal << weight_rcp) - internal) + \
|
(((internal << weight_rcp) - internal) + \
|
||||||
(val << precision)) >> weight_rcp : \
|
(val << precision)) >> weight_rcp : \
|
||||||
(val << precision); \
|
(val << precision)); \
|
||||||
}
|
}
|
||||||
|
|
||||||
/* </DECLARE_EWMA> */
|
/* </DECLARE_EWMA> */
|
||||||
|
|
33
batman-adv/patches/0001-compat-hacks.patch
Normal file
33
batman-adv/patches/0001-compat-hacks.patch
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
--- a/net/batman-adv/main.c
|
||||||
|
+++ b/net/batman-adv/main.c
|
||||||
|
@@ -19,7 +19,7 @@
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
#include <linux/atomic.h>
|
||||||
|
-#include <linux/build_bug.h>
|
||||||
|
+#include <linux/bug.h>
|
||||||
|
#include <linux/byteorder/generic.h>
|
||||||
|
#include <linux/crc32c.h>
|
||||||
|
#include <linux/errno.h>
|
||||||
|
--- a/net/batman-adv/tp_meter.c
|
||||||
|
+++ b/net/batman-adv/tp_meter.c
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
#include <linux/atomic.h>
|
||||||
|
-#include <linux/build_bug.h>
|
||||||
|
+#include <linux/bug.h>
|
||||||
|
#include <linux/byteorder/generic.h>
|
||||||
|
#include <linux/cache.h>
|
||||||
|
#include <linux/compiler.h>
|
||||||
|
--- a/net/batman-adv/translation-table.c
|
||||||
|
+++ b/net/batman-adv/translation-table.c
|
||||||
|
@@ -21,7 +21,7 @@
|
||||||
|
|
||||||
|
#include <linux/atomic.h>
|
||||||
|
#include <linux/bitops.h>
|
||||||
|
-#include <linux/build_bug.h>
|
||||||
|
+#include <linux/bug.h>
|
||||||
|
#include <linux/byteorder/generic.h>
|
||||||
|
#include <linux/cache.h>
|
||||||
|
#include <linux/compiler.h>
|
Loading…
Reference in a new issue