Skip to content

Commit 67463e5

Browse files
committed
Allow KASAN and HOTPLUG_MEMORY to co-exist when doing build testing
No, KASAN may not be able to co-exist with HOTPLUG_MEMORY at runtime, but for build testing there is no reason not to allow them together. This hopefully means better build coverage and fewer embarrasing silly problems like the one fixed by commit 9db4f36 ("mm: remove unused variable in memory hotplug") in the future. Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Alexander Potapenko <glider@google.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9db4f36 commit 67463e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mm/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ config MEMORY_HOTPLUG
187187
bool "Allow for memory hot-add"
188188
depends on SPARSEMEM || X86_64_ACPI_NUMA
189189
depends on ARCH_ENABLE_MEMORY_HOTPLUG
190-
depends on !KASAN
190+
depends on COMPILE_TEST || !KASAN
191191

192192
config MEMORY_HOTPLUG_SPARSE
193193
def_bool y

0 commit comments

Comments
 (0)