]> Git Repo - linux.git/commitdiff
iommu/arm-smmu: Mark qcom_smmu_client_of_match as possibly unused
authorJordan Crouse <[email protected]>
Thu, 4 Jun 2020 20:39:04 +0000 (14:39 -0600)
committerJoerg Roedel <[email protected]>
Thu, 9 Jul 2020 15:20:22 +0000 (17:20 +0200)
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: 0e764a01015d ("iommu/arm-smmu: Allow client devices to select direct mapping")
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Jordan Crouse <[email protected]>
Acked-by: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
drivers/iommu/arm-smmu-qcom.c

index cf01d0215a3974c3c2a912eef8183911e5e82b64..be4318044f96c19d1055a07231f87dc911f8ebe5 100644 (file)
@@ -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" },
This page took 0.061833 seconds and 4 git commands to generate.