提交 a082121b 编写于 作者: J Jordan Crouse 提交者: Joerg Roedel

iommu/arm-smmu: Mark qcom_smmu_client_of_match as possibly unused

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: 0e764a01 ("iommu/arm-smmu: Allow client devices to select direct mapping")
Reported-by: Nkbuild test robot <lkp@intel.com>
Signed-off-by: NJordan Crouse <jcrouse@codeaurora.org>
Acked-by: NWill Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200604203905.31964-1-jcrouse@codeaurora.orgSigned-off-by: NJoerg Roedel <jroedel@suse.de>
上级 9ac85451
......@@ -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" },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册