mac80211: ath10k: increase rx buffer size to 2048
[openwrt/openwrt.git] / tools / mkimage / patches / 060-remove_kernel_includes.patch
1 The Kernel includes are only available on Linux hosts, remove then on
2 non Linux hosts.
3
4 --- a/include/linux/posix_types.h
5 +++ b/include/linux/posix_types.h
6 @@ -43,6 +43,8 @@ typedef void (*__kernel_sighandler_t)(in
7 /* Type of a SYSV IPC key. */
8 typedef int __kernel_key_t;
9
10 +#ifdef linux
11 #include <asm/posix_types.h>
12 +#endif
13
14 #endif /* _LINUX_POSIX_TYPES_H */
15 --- a/include/imx8image.h
16 +++ b/include/imx8image.h
17 @@ -11,7 +11,12 @@
18 #include <image.h>
19 #include <inttypes.h>
20 #include "imagetool.h"
21 +#ifdef linux
22 #include "linux/kernel.h"
23 +#else
24 +#define ALIGN(x,a) __ALIGN_MASK((x),(typeof(x))(a)-1)
25 +#define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
26 +#endif
27
28 #define __packed __attribute__((packed))
29