This allows kmemleak to function even when debugfs is globally disabled,
allowing kmemleak to give accurate results for CONFIG_DEBUG_FS=n.
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
config DEBUG_KMEMLEAK
bool "Kernel memory leak detector"
- depends on DEBUG_KERNEL && HAVE_DEBUG_KMEMLEAK
- select DEBUG_FS
+ depends on HAVE_DEBUG_KMEMLEAK
select STACKTRACE if STACKTRACE_SUPPORT
select KALLSYMS
select CRC32
obj-$(CONFIG_FRAME_VECTOR) += frame_vector.o
obj-$(CONFIG_PROCESS_RECLAIM) += process_reclaim.o
obj-$(CONFIG_HARDENED_USERCOPY) += usercopy.o
+
+CFLAGS_kmemleak.o += -DCONFIG_DEBUG_FS