diff options
| author | Danilo Krummrich <[email protected]> | 2022-08-02 02:04:04 +0200 | 
|---|---|---|
| committer | Sam Ravnborg <[email protected]> | 2022-08-03 18:32:27 +0200 | 
| commit | 8c30eecc6769bee1e3acb485ad5f086a4d8a04b6 (patch) | |
| tree | 874c90e0c4bc8e33735ef162e8ebff786bfa73c1 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 4a83c26a1d8702c516db77fc4423ae896ee904f1 (diff) | |
drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr}
The field paddr of struct drm_gem_dma_object holds a DMA address, which
might actually be a physical address. However, depending on the platform,
it can also be a bus address or a virtual address managed by an IOMMU.
Hence, rename the field to dma_addr, which is more applicable.
In order to do this renaming the following coccinelle script was used:
```
	@@
	struct drm_gem_dma_object *gem;
	@@
	- gem->paddr
	+ gem->dma_addr
	@@
	struct drm_gem_dma_object gem;
	@@
	- gem.paddr
	+ gem.dma_addr
	@exists@
	typedef dma_addr_t;
	symbol paddr;
	@@
	dma_addr_t paddr;
	<...
	- paddr
	+ dma_addr
	...>
	@@
	symbol paddr;
	@@
	dma_addr_t
	- paddr
	+ dma_addr
	;
```
This patch is compile-time tested with:
```
	make ARCH={x86_64,arm,arm64} allyesconfig
	make ARCH={x86_64,arm,arm64} drivers/gpu/drm`
```
Acked-by: Sam Ravnborg <[email protected]>
Suggested-by: Laurent Pinchart <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Danilo Krummrich <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions