From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: dma-buf: heaps: Turn heaps into modules
Date: Wed, 04 Mar 2026 07:41:35 +1000 [thread overview]
Message-ID: <review-overall-20260303-dma-buf-heaps-as-modules-v3-0-24344812c707@kernel.org> (raw)
In-Reply-To: <20260303-dma-buf-heaps-as-modules-v3-0-24344812c707@kernel.org>
Overall Series Review
Subject: dma-buf: heaps: Turn heaps into modules
Author: Maxime Ripard <mripard@kernel.org>
Patches: 9
Reviewed: 2026-03-04T07:41:35.266050
---
**Author**: Maxime Ripard <mripard@kernel.org>
**Series**: dma-buf: heaps: Turn heaps into modules (v3, 8 patches)
This series enables the CMA and system dma-buf heaps to be compiled as loadable modules (tristate). The approach is well-structured: patches 1-6 prepare the prerequisites (inverting the CMA registration logic, exporting necessary symbols), and patches 7-8 make the actual `bool` → `tristate` Kconfig changes.
The overall design is sound. Inverting the registration so the heap queries the contiguous DMA code (rather than the contiguous code calling into the heap) is the right way to break the built-in → module dependency. The patches are generally well-separated with clear commit messages.
**However, there is a build-breaking bug:** patch 1 removes the `dma_heap_cma_register_heap()` function definition from `cma_heap.c`, but the call site at `kernel/dma/contiguous.c:276` and the header declaration in `include/linux/dma-buf/heaps/cma.h` are left behind. This causes a **link error** when `CONFIG_DMABUF_HEAPS_CMA=y`. Details below.
---
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-03-03 21:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 10:13 [PATCH v3 0/8] dma-buf: heaps: Turn heaps into modules Maxime Ripard
2026-03-03 10:13 ` [PATCH v3 1/8] dma: contiguous: Turn heap registration logic around Maxime Ripard
2026-03-03 21:41 ` Claude review: " Claude Code Review Bot
2026-03-03 10:13 ` [PATCH v3 2/8] dma: contiguous: Make dev_get_cma_area() a proper function Maxime Ripard
2026-03-03 21:41 ` Claude review: " Claude Code Review Bot
2026-03-03 10:13 ` [PATCH v3 3/8] dma: contiguous: Make dma_contiguous_default_area static Maxime Ripard
2026-03-03 21:41 ` Claude review: " Claude Code Review Bot
2026-03-03 10:13 ` [PATCH v3 4/8] dma: contiguous: Export dev_get_cma_area() Maxime Ripard
2026-03-03 21:41 ` Claude review: " Claude Code Review Bot
2026-03-03 10:13 ` [PATCH v3 5/8] mm: cma: Export cma_alloc(), cma_release() and cma_get_name() Maxime Ripard
2026-03-03 21:41 ` Claude review: " Claude Code Review Bot
2026-03-03 10:13 ` [PATCH v3 6/8] dma-buf: heaps: Export mem_accounting parameter Maxime Ripard
2026-03-03 21:41 ` Claude review: " Claude Code Review Bot
2026-03-03 10:13 ` [PATCH v3 7/8] dma-buf: heaps: cma: Turn the heap into a module Maxime Ripard
2026-03-03 21:41 ` Claude review: " Claude Code Review Bot
2026-03-03 10:13 ` [PATCH v3 8/8] dma-buf: heaps: system: " Maxime Ripard
2026-03-03 21:41 ` Claude review: " Claude Code Review Bot
2026-03-03 21:41 ` Claude Code Review Bot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-02-25 16:41 [PATCH 0/7] dma-buf: heaps: Turn heaps into modules Maxime Ripard
2026-02-27 3:12 ` Claude review: " Claude Code Review Bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=review-overall-20260303-dma-buf-heaps-as-modules-v3-0-24344812c707@kernel.org \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox