cma: move __cma_declare_contiguous_nid() before its usage
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Thu, 3 Jul 2025 18:47:09 +0000 (21:47 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 13 Jul 2025 23:38:24 +0000 (16:38 -0700)
commit20089ebd756c3b13c6f24650ab1d518f76ad173d
tree3e66b2caa5910497a86b8dacc2490757b0a03b01
parentf63f7e9bfbacf8d948e41a481a14d5a14bbbeb64
cma: move __cma_declare_contiguous_nid() before its usage

Patch series "cma: factor out allocation logic from
__cma_declare_contiguous_nid", v2.

We've discussed earlier that HIGHMEM related logic is spread all over
__cma_declare_contiguous_nid().  These patches decouple it into helper
functions.

This patch (of 3):

Move __cma_declare_contiguous_nid() before its usage and kill forward
declaration.

Link: https://lkml.kernel.org/r/20250703184711.3485940-1-rppt@kernel.org
Link: https://lkml.kernel.org/r/20250703184711.3485940-2-rppt@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Acked-by: Oscar Salvador <osalvador@suse.de>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Alexandre Ghiti <alexghiti@rivosinc.com>
Cc: Pratyush Yadav <ptyadav@amazon.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/cma.c