From 45a987af0b531051a6a611bc7bdc9fb7b2bb4388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gr=C3=A9goire?= Date: Fri, 24 Apr 2026 14:49:33 -0400 Subject: [PATCH] fix(mm/zone): use new config system --- src/mm/zone.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mm/zone.zig b/src/mm/zone.zig index e07afd8..c46c09f 100644 --- a/src/mm/zone.zig +++ b/src/mm/zone.zig @@ -120,8 +120,8 @@ var magtypes = [_]MagazineType{ const alloc_poison: u32 = 0xBADDC0DE; const free_poison: u32 = 0xDEADBEEF; -const is_poison_enabled = @hasDecl(config, "CONFIG_SLAB_POISON"); -const should_check_poison = @hasDecl(config, "CONFIG_SLAB_POISON_CHECK"); +const is_poison_enabled = config.slab_poison; +const should_check_poison = config.slab_check_poison; inline fn fill_with_poison(ptr: *anyopaque, len: usize, pattern: u32) void { const bytes: [*]u8 = @ptrCast(ptr);