File gcc6_compiler-gcc.patch of Package odroidc2-firmware

From fd7bffc3c124555f686c80aef9bdfde17924fdb7 Mon Sep 17 00:00:00 2001
From: Heinrich Schuchardt <xypron.glpk@gmx.de>
Date: Sat, 12 Nov 2016 06:36:09 +0100
Subject: [PATCH] compiler-gcc.h: Enable GCC 6 support

Use compiler-gcc5.h for GCC 6.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 include/linux/compiler-gcc.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h
index e057bd2..22eb7b9 100644
--- a/include/linux/compiler-gcc.h
+++ b/include/linux/compiler-gcc.h
@@ -110,7 +110,11 @@
 
 #define __gcc_header(x) #x
 #define _gcc_header(x) __gcc_header(linux/compiler-gcc##x.h)
+#if __GNUC__ > 5
+#define gcc_header(x) _gcc_header(5)
+#else
 #define gcc_header(x) _gcc_header(x)
+#endif
 #include gcc_header(__GNUC__)
 
 #if !defined(__noclone)