fault-inject: make enum fault_flags available unconditionally

This will allow using should_fail_ex from code without having to
make it conditional on CONFIG_FAULT_INJECTION.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20251113084022.1255121-2-hch@lst.de
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
pull/1354/merge
Christoph Hellwig 2025-11-13 09:39:42 +01:00 committed by Vlastimil Babka
parent dcb6fa37fd
commit 0f2620ffc4
1 changed files with 4 additions and 4 deletions

View File

@ -8,6 +8,10 @@
struct dentry;
struct kmem_cache;
enum fault_flags {
FAULT_NOWARN = 1 << 0,
};
#ifdef CONFIG_FAULT_INJECTION
#include <linux/atomic.h>
@ -36,10 +40,6 @@ struct fault_attr {
struct dentry *dname;
};
enum fault_flags {
FAULT_NOWARN = 1 << 0,
};
#define FAULT_ATTR_INITIALIZER { \
.interval = 1, \
.times = ATOMIC_INIT(1), \