Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/buddy: Documentation and internal helper cleanup
@ 2026-02-04 10:43 Sanjay Yadav
  2026-02-04 10:43 ` [PATCH 1/2] drm/buddy: Move internal helpers to drm_buddy.c Sanjay Yadav
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Sanjay Yadav @ 2026-02-04 10:43 UTC (permalink / raw)
  To: dri-devel
  Cc: intel-xe, Christian König, Arunpravin Paneer Selvam,
	Matthew Auld

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 <christian.koenig@amd.com>
Cc: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Suggested-by: Matthew Auld <matthew.auld@intel.com>

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-02-06  8:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-04 10:43 [PATCH 0/2] drm/buddy: Documentation and internal helper cleanup Sanjay Yadav
2026-02-04 10:43 ` [PATCH 1/2] drm/buddy: Move internal helpers to drm_buddy.c Sanjay Yadav
2026-02-06  8:27   ` Paneer Selvam, Arunpravin
2026-02-04 10:43 ` [PATCH 2/2] drm/buddy: Add kernel-doc for allocator structures and flags Sanjay Yadav
2026-02-06  8:39   ` Paneer Selvam, Arunpravin
2026-02-04 10:54 ` ✓ CI.KUnit: success for drm/buddy: Documentation and internal helper cleanup Patchwork
2026-02-04 11:53 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-02-04 22:03 ` ✗ Xe.CI.FULL: " Patchwork
2026-02-04 22:32 ` ✓ CI.KUnit: success for drm/buddy: Documentation and internal helper cleanup (rev2) Patchwork
2026-02-04 23:24 ` ✓ Xe.CI.BAT: " Patchwork
2026-02-05 13:53 ` ✗ Xe.CI.FULL: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox