scripts: fix revision calculation using new "main" branch
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / build / 120-headers_version_fix.patch
1 --- a/backport-include/linux/random.h
2 +++ b/backport-include/linux/random.h
3 @@ -23,7 +23,7 @@ static inline u16 get_random_u16(void)
4 }
5 #endif
6
7 -#if LINUX_VERSION_IS_LESS(6,2,0)
8 +#if LINUX_VERSION_IS_LESS(6,1,4)
9 static inline u32 __get_random_u32_below(u32 ceil)
10 {
11 /*
12 --- a/backport-include/net/dropreason.h
13 +++ b/backport-include/net/dropreason.h
14 @@ -3,10 +3,9 @@
15
16 #include <linux/version.h>
17
18 +#include <net/dropreason-core.h>
19 #if LINUX_VERSION_IS_GEQ(6,0,0)
20 #include_next <net/dropreason.h>
21 -#else
22 -#include <net/dropreason-core.h>
23 #endif
24
25 #if LINUX_VERSION_IS_LESS(6,4,0)