Skip to content

Commit d26d957

Browse files
committed
sucking in upstream changes
2 parents 74f74c1 + 8d7a3f4 commit d26d957

File tree

24 files changed

+87
-52
lines changed

24 files changed

+87
-52
lines changed

arch/microblaze/bits/syscall.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,4 +383,7 @@
383383
#define __NR_memfd_create 386
384384
#define __NR_bpf 387
385385
#define __NR_execveat 388
386+
#define __NR_userfaultfd 389
387+
#define __NR_membarrier 390
388+
#define __NR_mlock2 391
386389

arch/sh/syscall_arch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
((union { long long ll; long l[2]; }){ .ll = x }).l[0], \
33
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
44
#define __SYSCALL_LL_O(x) __SYSCALL_LL_E((x))
5+
#define __SYSCALL_LL_PRW(x) 0, __SYSCALL_LL_E((x))
56

67
/* The extra OR instructions are to work around a hardware bug:
78
* http://documentation.renesas.com/doc/products/mpumcu/tu/tnsh7456ae.pdf

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ x86_64-x32*|x32*|x86_64*x32) ARCH=x32 ;;
319319
x86_64-nt64*) ARCH=nt64 ;;
320320
x86_64*) ARCH=x86_64 ;;
321321
LLVM*) ARCH=LLVM ;;
322-
mips64*) ARCH=mips64 ;;
322+
mips64*|mipsisa64*) ARCH=mips64 ;;
323323
mips*) ARCH=mips ;;
324324
microblaze*) ARCH=microblaze ;;
325325
or1k*) ARCH=or1k ;;

include/assert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
extern "C" {
1717
#endif
1818

19-
void __assert_fail (const char *, const char *, int, const char *);
19+
_Noreturn void __assert_fail (const char *, const char *, int, const char *);
2020

2121
#ifdef __cplusplus
2222
}

include/fcntl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int posix_fallocate(int, off_t, off_t);
9999
#define AT_EMPTY_PATH 0x1000
100100

101101
#define FAPPEND O_APPEND
102-
#define FFSYNC O_FSYNC
102+
#define FFSYNC O_SYNC
103103
#define FASYNC O_ASYNC
104104
#define FNONBLOCK O_NONBLOCK
105105
#define FNDELAY O_NDELAY

include/net/if.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct ifreq {
8989
struct ifmap ifru_map;
9090
char ifru_slave[IFNAMSIZ];
9191
char ifru_newname[IFNAMSIZ];
92-
void *ifru_data;
92+
char *ifru_data;
9393
} ifr_ifru;
9494
};
9595

@@ -116,7 +116,7 @@ struct ifreq {
116116
struct ifconf {
117117
int ifc_len;
118118
union {
119-
void *ifcu_buf;
119+
char *ifcu_buf;
120120
struct ifreq *ifcu_req;
121121
} ifc_ifcu;
122122
};

include/netinet/udp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ struct udphdr {
2828
#define UDP_ENCAP_ESPINUDP_NON_IKE 1
2929
#define UDP_ENCAP_ESPINUDP 2
3030
#define UDP_ENCAP_L2TPINUDP 3
31+
#define UDP_ENCAP_GTP0 4
32+
#define UDP_ENCAP_GTP1U 5
3133

3234
#define SOL_UDP 17
3335

include/sched.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int sched_getaffinity(pid_t, size_t, cpu_set_t *);
8282
int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
8383

8484
#define __CPU_op_S(i, size, set, op) ( (i)/8U >= (size) ? 0 : \
85-
((set)->__bits[(i)/8/sizeof(long)] op (1UL<<((i)%(8*sizeof(long))))) )
85+
(((unsigned long *)(set))[(i)/8/sizeof(long)] op (1UL<<((i)%(8*sizeof(long))))) )
8686

8787
#define CPU_SET_S(i, size, set) __CPU_op_S(i, size, set, |=)
8888
#define CPU_CLR_S(i, size, set) __CPU_op_S(i, size, set, &=~)
@@ -94,8 +94,8 @@ static __inline void __CPU_##func##_S(size_t __size, cpu_set_t *__dest, \
9494
{ \
9595
size_t __i; \
9696
for (__i=0; __i<__size/sizeof(long); __i++) \
97-
__dest->__bits[__i] = __src1->__bits[__i] \
98-
op __src2->__bits[__i] ; \
97+
((unsigned long *)__dest)[__i] = ((unsigned long *)__src1)[__i] \
98+
op ((unsigned long *)__src2)[__i] ; \
9999
}
100100

101101
__CPU_op_func_S(AND, &)

include/signal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ void (*sigset(int, void (*)(int)))(int);
239239
#define POLL_HUP 6
240240
#define SS_ONSTACK 1
241241
#define SS_DISABLE 2
242+
#define SS_AUTODISARM (1U << 31)
243+
#define SS_FLAG_BITS SS_AUTODISARM
242244
#endif
243245

244246
#if defined(_BSD_SOURCE) || defined(_GNU_SOURCE)

include/sys/socket.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ struct linger {
107107
#define PF_NFC 39
108108
#define PF_VSOCK 40
109109
#define PF_KCM 41
110-
#define PF_MAX 42
110+
#define PF_QIPCRTR 42
111+
#define PF_MAX 43
111112

112113
#define AF_UNSPEC PF_UNSPEC
113114
#define AF_LOCAL PF_LOCAL
@@ -154,6 +155,7 @@ struct linger {
154155
#define AF_NFC PF_NFC
155156
#define AF_VSOCK PF_VSOCK
156157
#define AF_KCM PF_KCM
158+
#define AF_QIPCRTR PF_QIPCRTR
157159
#define AF_MAX PF_MAX
158160

159161
#ifndef SO_DEBUG

0 commit comments

Comments
 (0)