CONFIG_HUGETLBFS
can disable the user-space API, and CONFIG_TRANSPARENT_HUGEPAGE
can disable automatic creation of huge pages for generic memory.
However, huge pages are an integral part of the x86 memory management code and are used for things like direct mappings or large MMIO regions.
You cannot simply switch off huge pages.
When you are working with the MM code, you cannot avoid worrying about huge pages.