Commit 0f2620ff authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Vlastimil Babka
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20251113084022.1255121-2-hch@lst.de


Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
parent dcb6fa37
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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),				\