X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Fbackport-4.14%2F012-kbuild-add-macro-for-controlling-warnings-to-linux-c.patch;h=8d91266e244d1edd23fa558701bea10275752027;hb=9f4a7de48aa2ba07ae117937f01c2a262dde423d;hp=7617c2e5f554af27e720ddf134d03dadbde4aaf0;hpb=c764b2b531116d0bf7d285ac8fee29eea6a486cc;p=oweals%2Fopenwrt.git diff --git a/target/linux/generic/backport-4.14/012-kbuild-add-macro-for-controlling-warnings-to-linux-c.patch b/target/linux/generic/backport-4.14/012-kbuild-add-macro-for-controlling-warnings-to-linux-c.patch index 7617c2e5f5..8d91266e24 100644 --- a/target/linux/generic/backport-4.14/012-kbuild-add-macro-for-controlling-warnings-to-linux-c.patch +++ b/target/linux/generic/backport-4.14/012-kbuild-add-macro-for-controlling-warnings-to-linux-c.patch @@ -84,10 +84,11 @@ Signed-off-by: Masahiro Yamada --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h -@@ -358,3 +358,28 @@ - * code - */ - #define uninitialized_var(x) x = x +@@ -362,3 +362,30 @@ + #if GCC_VERSION >= 50100 + #define COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW 1 + #endif ++ + +/* + * Turn individual warnings and errors on and off locally, depending @@ -113,6 +114,7 @@ Signed-off-by: Masahiro Yamada +#else +#define __diag_GCC_8(s) +#endif ++ --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -283,4 +283,22 @@ struct ftrace_likely_data {