kernel: bump 4.14 to 4.14.97
[openwrt/staging/luka.git] / target / linux / generic / backport-4.14 / 012-kbuild-add-macro-for-controlling-warnings-to-linux-c.patch
index 892b65fbc066c858b72d0b7f99eb9db0b6c85767..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,9 +114,10 @@ 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
-@@ -271,4 +271,22 @@ struct ftrace_likely_data {
+@@ -283,4 +283,22 @@ struct ftrace_likely_data {
  # define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
  #endif