Merge branch 'acpica' into release
[firefly-linux-kernel-4.4.55.git] / include / linux / compiler-gcc4.h
index ab3af40a53c6d6ffbc4b296fa46ed656e9099dc7..94dea3ffbfa19576e2cd8bb59b56658465101b49 100644 (file)
 #endif
 
 #endif
+
+#if __GNUC_MINOR__ > 0
+#define __compiletime_object_size(obj) __builtin_object_size(obj, 0)
+#endif
+#if __GNUC_MINOR__ >= 4
+#define __compiletime_warning(message) __attribute__((warning(message)))
+#define __compiletime_error(message) __attribute__((error(message)))
+#endif