add CONFIG_ENABLE_MUST_CHECK
[firefly-linux-kernel-4.4.55.git] / lib / Kconfig.debug
index 554ee688a9f8a397cad63a96458ca5d1198b88e7..5c114c3f03c5b77f0953da552816cc8425ea7234 100644 (file)
@@ -8,6 +8,13 @@ config PRINTK_TIME
          operations.  This is useful for identifying long delays
          in kernel startup.
 
+config ENABLE_MUST_CHECK
+       bool "Enable __must_check logic"
+       default y
+       help
+         Enable the __must_check logic in the kernel build.  Disable this to
+         suppress the "warning: ignoring return value of 'foo', declared with
+         attribute warn_unused_result" messages.
 
 config MAGIC_SYSRQ
        bool "Magic SysRq key"