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>
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Hauke Mehrtens
					Hauke Mehrtens