diff options
author | Geert Uytterhoeven <[email protected]> | 2018-03-16 14:25:40 +0100 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2018-03-16 19:58:27 +0100 |
commit | f29ab49b5388b2f829cf99859bc5f8ad8ec4d06a (patch) | |
tree | d8fb169b5d63e0ae56bd03bcc81c7a7fb041e1df /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0c8efd610b58cb23cefdfa12015799079aef94ae (diff) |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions