kernel: bump 4.14 to 4.14.97
[openwrt/openwrt.git] / target / linux / generic / backport-4.14 / 012-kbuild-add-macro-for-controlling-warnings-to-linux-c.patch
index 7617c2e5f554af27e720ddf134d03dadbde4aaf0..8d91266e244d1edd23fa558701bea10275752027 100644 (file)
@@ -84,10 +84,11 @@ Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
 
 --- 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 <yamada.masahiro@socionext.com>
 +#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 {