kernel: bump 4.9 to 4.9.154
[openwrt/openwrt.git] / target / linux / generic / backport-4.9 / 012-kbuild-add-macro-for-controlling-warnings-to-linux-c.patch
index ccc7232751f59576b1d6fe685187a2811561845f..4b22ca0e3f69e9250a667454191ba4884087a142 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
-@@ -334,3 +334,28 @@
-  * code
-  */
- #define uninitialized_var(x) x = x
+@@ -338,3 +338,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.h
 +++ b/include/linux/compiler.h
 @@ -578,4 +578,23 @@ static __always_inline void __write_once