diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2017-06-03 12:59:55 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2018-01-20 22:11:33 +0100 |
commit | 4336efe14b61e47177a2d0863f8391c48cf4a9f5 (patch) | |
tree | 0135be3408bc34b45dba4bde3679e28bbfceee41 /toolchain/musl/patches/400-Add-format-attribute-to-some-function-declarations.patch | |
parent | e3c43ade0bae9491aeea50fa361e846bb5002dc0 (diff) | |
download | upstream-4336efe14b61e47177a2d0863f8391c48cf4a9f5.tar.gz upstream-4336efe14b61e47177a2d0863f8391c48cf4a9f5.tar.bz2 upstream-4336efe14b61e47177a2d0863f8391c48cf4a9f5.zip |
kernel: use upstream patches for musl
This replaces the current patches used to make the kernel headers
compatible with musl with the version which was accepted upstream. This
is included in upstream kernel 4.15.
This was compile tested with iproute2 build on all supported kernel
versions with musl and one one with glibc.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'toolchain/musl/patches/400-Add-format-attribute-to-some-function-declarations.patch')
-rw-r--r-- | toolchain/musl/patches/400-Add-format-attribute-to-some-function-declarations.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/toolchain/musl/patches/400-Add-format-attribute-to-some-function-declarations.patch b/toolchain/musl/patches/400-Add-format-attribute-to-some-function-declarations.patch index c495d67e08..67fedae30a 100644 --- a/toolchain/musl/patches/400-Add-format-attribute-to-some-function-declarations.patch +++ b/toolchain/musl/patches/400-Add-format-attribute-to-some-function-declarations.patch @@ -45,11 +45,7 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> +#else +#define __fp(x, y) +#endif - --_Noreturn void err(int, const char *, ...); --_Noreturn void verr(int, const char *, va_list); --_Noreturn void errx(int, const char *, ...); --_Noreturn void verrx(int, const char *, va_list); ++ +void warn(const char *, ...) __fp(1, 2); +void vwarn(const char *, va_list) __fp(1, 0); +void warnx(const char *, ...) __fp(1, 2); @@ -59,7 +55,11 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> +_Noreturn void verr(int, const char *, va_list) __fp(2, 0); +_Noreturn void errx(int, const char *, ...) __fp(2, 3); +_Noreturn void verrx(int, const char *, va_list) __fp(2, 0); -+ + +-_Noreturn void err(int, const char *, ...); +-_Noreturn void verr(int, const char *, va_list); +-_Noreturn void errx(int, const char *, ...); +-_Noreturn void verrx(int, const char *, va_list); +#undef __fp #ifdef __cplusplus |