Re: [PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

From: Michal Hocko
Date: Fri Jun 28 2019 - 07:59:00 EST


On Fri 28-06-19 13:37:07, David Hildenbrand wrote:
> VM_BUG_ON is only really active with CONFIG_DEBUG_VM. On
> !CONFIG_DEBUG_VM it translated to BUILD_BUG_ON_INVALID(), which is a
> compile-time only check.
>
> Or am I missing something?

You are not missing anything.
--
Michal Hocko
SUSE Labs