This series improves the DRM buddy allocator by adding missing documentation and cleaning up internal helpers.
It adds kernel-doc for the allocator structures and flags, covering drm_buddy, drm_buddy_block, and the allocation flags (RANGE, TOPDOWN, CONTIGUOUS, CLEAR, TRIM_DISABLE) to make the allocator’s design and usage clearer for readers and contributors. It also reduces the header surface by moving internal helpers from drm_buddy.h into drm_buddy.c as static functions, since they have no external users, and removes drm_get_buddy(), an unused exported wrapper around the internal __get_buddy() helper. This clarifies the intended API and avoids exporting unused symbols. No functional changes. Cc: Christian König <[email protected]> Cc: Arunpravin Paneer Selvam <[email protected]> Suggested-by: Matthew Auld <[email protected]> Sanjay Yadav (2): drm/buddy: Move internal helpers to drm_buddy.c drm/buddy: Add kernel-doc for allocator structures and flags drivers/gpu/drm/drm_buddy.c | 41 ++++++---- include/drm/drm_buddy.h | 149 ++++++++++++++++++++++++------------ 2 files changed, 126 insertions(+), 64 deletions(-) -- 2.52.0
