summaryrefslogtreecommitdiff
path: root/include/linux/bug.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/bug.h')
-rw-r--r--include/linux/bug.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/bug.h b/include/linux/bug.h
index 833746d361cf..218ac5875124 100644
--- a/include/linux/bug.h
+++ b/include/linux/bug.h
@@ -110,6 +110,12 @@ static inline enum bug_trap_type report_bug(unsigned long bug_addr,
#endif /* CONFIG_GENERIC_BUG */
+#ifdef CONFIG_PANIC_ON_DATA_CORRUPTION
+#define PANIC_CORRUPTION 1
+#else
+#define PANIC_CORRUPTION 0
+#endif /* CONFIG_PANIC_ON_DATA_CORRUPTION */
+
/*
* Since detected data corruption should stop operation on the affected
* structures. Return value must be checked and sanely acted on by caller.