drm/cma-helper: Clean up public interface
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drm/cma-helper: Move driver and file ops to the end of headerinclude/ | +60 | 3 replies | |
| 2/3 | drm/cma-helper: Export dedicated wrappers for GEM object functionsdrivers/ drivers/ drivers/ +1 more | +94 | 1 reply | |
| 3/3 | drm/cma-helper: Pass GEM CMA object in public interfacesdrivers/ drivers/ include/ | +48 | 3 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Laurent Pinchart | Maxime Ripard |
|---|---|---|
| 1/3 | R-b | R-b |
| 2/3 | R-b | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] drm/cma-helper: Clean up public interface
Convert GEM CMA functions to accept struct drm_gem_cma_object, provide small wrappers for GEM object callbacks and update all users. Brings up the interface to the pattern used in SHMEM and VRAM helpers.
Converting all GEM object functions to use drm_gem_cma_object enables type checking by the C compiler. Previous callers could have passed any implementation of drm_gem_object to the GEM CMA helpers. It also removes upcasting in the GEM functions and simplifies the caller side. No functional changes.
For GEM object callbacks, the CMA helper library now provides a number of small wrappers that do the necessary upcasting. Again no functional changes.
Thomas Zimmermann (3):
drm/cma-helper: Move driver and file ops to the end of header drm/cma-helper: Export dedicated wrappers for GEM object functions drm/cma-helper: Pass GEM CMA object in public interfaces
drivers/gpu/drm/drm_gem_cma_helper.c | 73 +++++----- drivers/gpu/drm/rcar-du/rcar_du_kms.c | 10 +- drivers/gpu/drm/vc4/vc4_bo.c | 8 +- include/drm/drm_gem_cma_helper.h | 189 +++++++++++++++++++------- 4 files changed, 180 insertions(+), 100 deletions(-)
base-commit: 9fccd12cfac1c863fa46d4d17c2d8ac25a44b190 --
2.33.1