diff options
| author | Geert Uytterhoeven <[email protected]> | 2018-03-16 13:25:40 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2018-03-16 18:58:27 +0000 |
| commit | f29ab49b5388b2f829cf99859bc5f8ad8ec4d06a (patch) | |
| tree | d8fb169b5d63e0ae56bd03bcc81c7a7fb041e1df /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | Linux 4.16-rc5 (diff) | |
| download | kernel-f29ab49b5388b2f829cf99859bc5f8ad8ec4d06a.tar.gz kernel-f29ab49b5388b2f829cf99859bc5f8ad8ec4d06a.zip | |
dma-mapping: Convert NO_DMA get_dma_ops() into a real dummy
If NO_DMA=y, get_dma_ops() returns a reference to the
non-existing symbol bad_dma_ops, thus causing a link failure if it is
ever used.
Make get_dma_ops() return NULL instead, to avoid the link failure.
This allows to improve compile-testing, and limits the need to keep on
sprinkling dependencies on HAS_DMA all over the place.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Acked-by: Robin Murphy <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
