Skip to content

Commit 0f2620f

Browse files
Christoph Hellwigtehcaster
authored andcommitted
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>
1 parent dcb6fa3 commit 0f2620f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

include/linux/fault-inject.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
struct dentry;
99
struct kmem_cache;
1010

11+
enum fault_flags {
12+
FAULT_NOWARN = 1 << 0,
13+
};
14+
1115
#ifdef CONFIG_FAULT_INJECTION
1216

1317
#include <linux/atomic.h>
@@ -36,10 +40,6 @@ struct fault_attr {
3640
struct dentry *dname;
3741
};
3842

39-
enum fault_flags {
40-
FAULT_NOWARN = 1 << 0,
41-
};
42-
4343
#define FAULT_ATTR_INITIALIZER { \
4444
.interval = 1, \
4545
.times = ATOMIC_INIT(1), \

0 commit comments

Comments
 (0)