diff options
author | Lukas Bulwahn <lukas.bulwahn@gmail.com> | 2020-11-15 21:59:51 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-11-17 22:29:49 +0000 |
commit | 68dd9d89eaf56dfab8d46bf25610aa4650247617 (patch) | |
tree | 5feb1672dc3f8f5d998d90ea440121d452dfe6dc /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f8394f232b1eab649ce2df5c5f15b0e528c92091 (diff) |
iommu/vt-d: include conditionally on CONFIG_INTEL_IOMMU_SVM
Commit 6ee1b77ba3ac ("iommu/vt-d: Add svm/sva invalidate function")
introduced intel_iommu_sva_invalidate() when CONFIG_INTEL_IOMMU_SVM.
This function uses the dedicated static variable inv_type_granu_table
and functions to_vtd_granularity() and to_vtd_size().
These parts are unused when !CONFIG_INTEL_IOMMU_SVM, and hence,
make CC=clang W=1 warns with an -Wunused-function warning.
Include these parts conditionally on CONFIG_INTEL_IOMMU_SVM.
Fixes: 6ee1b77ba3ac ("iommu/vt-d: Add svm/sva invalidate function")
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20201115205951.20698-1-lukas.bulwahn@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions