From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: dma-buf: Allow single exporter drivers to avoid the match_mapping function Date: Wed, 18 Feb 2026 11:37:57 +1000 Message-ID: In-Reply-To: <5-v1-b5cab63049c0+191af-dmabuf_map_type_jgg@nvidia.com> References: <0-v1-b5cab63049c0+191af-dmabuf_map_type_jgg@nvidia.com> <5-v1-b5cab63049c0+191af-dmabuf_map_type_jgg@nvidia.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review > +#define DMA_BUF_SIMPLE_SGT_EXP_MATCH(_map, _unmap) \ > + .single_exporter_match = &((const struct dma_buf_mapping_match){ \ > + .type = &dma_buf_mapping_sgt_type, \ > + .exp_ops = &((const struct dma_buf_mapping_sgt_exp_ops){ \ > + .map_dma_buf = _map, \ > + .unmap_dma_buf = _unmap, \ > + }.ops), \ Compound literals at file scope with static storage duration -- correct and clever. The validation in `dma_buf_export()` properly enforces mutual exclusion between `match_mapping` and `single_exporter_match`. No issues. --- Generated by Claude Code Patch Reviewer