Skip to content

Commit

Permalink
iommu/arm-smmu: Mark qcom_smmu_client_of_match as possibly unused
Browse files Browse the repository at this point in the history
When CONFIG_OF=n of_match_device() gets pre-processed out of existence
leaving qcom-smmu_client_of_match unused. Mark it as possibly unused to
keep the compiler from warning in that case.

Fixes: 0e764a0 ("iommu/arm-smmu: Allow client devices to select direct mapping")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200604203905.31964-1-jcrouse@codeaurora.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Jordan Crouse authored and Joerg Roedel committed Jul 9, 2020
1 parent 9ac8545 commit a082121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/arm-smmu-qcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct qcom_smmu {
struct arm_smmu_device smmu;
};

static const struct of_device_id qcom_smmu_client_of_match[] = {
static const struct of_device_id qcom_smmu_client_of_match[] __maybe_unused = {
{ .compatible = "qcom,adreno" },
{ .compatible = "qcom,mdp4" },
{ .compatible = "qcom,mdss" },
Expand Down

0 comments on commit a082121

Please sign in to comment.