[PATCH v2 -next] perf/marvell: cn10k Fix build error without CONFIG_OF

Arnd Bergmann arnd at arndb.de
Wed Mar 9 23:41:27 PST 2022


On Thu, Mar 10, 2022 at 7:50 AM YueHaibing <yuehaibing at huawei.com> wrote:
>
> drivers/perf/marvell_cn10k_ddr_pmu.c:723:21: error: ‘cn10k_ddr_pmu_of_match’ undeclared here (not in a function); did you mean ‘cn10k_ddr_pmu_driver’?
>          .of_match_table = cn10k_ddr_pmu_of_match,
>                            ^~~~~~~~~~~~~~~~~~~~~~
>
> Remove the #ifdef around the match table, because CONFIG_OF is always enabled on arm64.
>
> Fixes: 7cf83e222bce ("perf/marvell: CN10k DDR performance monitor support")
> Signed-off-by: YueHaibing <yuehaibing at huawei.com>
> ---
> v2: Remove the #ifdef macro as Arnd suggested

Reviewed-by: Arnd Bergmann <arnd at arndb.de>



More information about the linux-arm-kernel mailing list