mac80211: disable ath6kl until it's packaged and used somewhere
[lede-git/.git] / toolchain / uClibc / patches-0.9.33 / 161-mips-add-INLINE_SYSCALL_NOERR-macro.patch
1 --- a/libc/sysdeps/linux/mips/bits/syscalls.h
2 +++ b/libc/sysdeps/linux/mips/bits/syscalls.h
3 @@ -29,6 +29,12 @@
4         }                                                               \
5       result_var; })
6  
7 +#define INLINE_SYSCALL_NOERR(name, nr, args...)                                \
8 +  ({ INTERNAL_SYSCALL_DECL(err);                                       \
9 +     long result_var = INTERNAL_SYSCALL(name, err, nr, args);          \
10 +     if (err) do { } while (0);                                                \
11 +     result_var; })
12 +
13  #define INTERNAL_SYSCALL_DECL(err) long err
14  
15  #define INTERNAL_SYSCALL_ERROR_P(val, err)   ((long) (err))