Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf/smmuv3: Fix unused variable warning when CONFIG_OF=n
The kbuild robot reports that building the SMMUv3 PMU driver with CONFIG_OF=n results in a warning for W=1 builds: >> drivers/perf/arm_smmuv3_pmu.c:889:34: warning: unused variable 'smmu_pmu_of_match' [-Wunused-const-variable] static const struct of_device_id smmu_pmu_of_match[] = { ^ Guard the match table with #ifdef CONFIG_OF. Link: https://lore.kernel.org/r/[email protected] Fixes: 3f7be43 ("perf/smmuv3: Add devicetree support") Reported-by: kernel test robot <[email protected]> Signed-off-by: Will Deacon <[email protected]>
- Loading branch information