On Wed, 18 Oct 2023 at 10:40, Ariel Miculas (amiculas) <amiculas@xxxxxxxxx> wrote: > I'm missing `CONFIG_NUMA`, which seems to guard `folio_alloc` > (include/linux/gfp.h): > ``` > #ifdef CONFIG_NUMA > struct page *alloc_pages(gfp_t gfp, unsigned int order); > struct folio *folio_alloc(gfp_t gfp, unsigned order); > struct folio *vma_alloc_folio(gfp_t gfp, int order, struct vm_area_struct *vma, > unsigned long addr, bool hugepage); > #else > ``` Hey Ariel, thanks for finding this. When CONFIG_NUMA is not defined, `folio_alloc` is a static inline function defined in the header file, so bindgen doesn't generate a binding for it. I'll fix this by adding a helper in rust/helpers.c.