add CONFIG_ENABLE_MUST_CHECK
[firefly-linux-kernel-4.4.55.git] / include / linux / compiler.h
index 9b4f110949375c78b8fa1db830009e64ab3fbf73..060b96112ec66fcfebcd6e8f5ea4c86f4bec5dde 100644 (file)
@@ -99,6 +99,11 @@ extern void __chk_io_ptr(void __iomem *);
 #define __must_check
 #endif
 
+#ifndef CONFIG_ENABLE_MUST_CHECK
+#undef __must_check
+#define __must_check
+#endif
+
 /*
  * Allow us to avoid 'defined but not used' warnings on functions and data,
  * as well as force them to be emitted to the assembly file.