Skip to content

Commit a082121

Browse files
Jordan Crousejoergroedel
authored andcommitted
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: 0e764a0 ("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]>
1 parent 9ac8545 commit a082121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/arm-smmu-qcom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct qcom_smmu {
1212
struct arm_smmu_device smmu;
1313
};
1414

15-
static const struct of_device_id qcom_smmu_client_of_match[] = {
15+
static const struct of_device_id qcom_smmu_client_of_match[] __maybe_unused = {
1616
{ .compatible = "qcom,adreno" },
1717
{ .compatible = "qcom,mdp4" },
1818
{ .compatible = "qcom,mdss" },

0 commit comments

Comments
 (0)