Re: mmotm 2022-03-09-23-28 uploaded (drivers/perf/marvell_cn10k_ddr_pmu.c)

From: Arnd Bergmann
Date: Thu Mar 10 2022 - 12:10:56 EST


On Thu, Mar 10, 2022 at 5:34 PM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
> On 3/9/22 23:29, Andrew Morton wrote:
> > The mm-of-the-moment snapshot 2022-03-09-23-28 has been uploaded to
> >
> > https://www.ozlabs.org/~akpm/mmotm/
> >
> > mmotm-readme.txt says
> >
> > README for mm-of-the-moment:
> >
> > https://www.ozlabs.org/~akpm/mmotm/
> >
> > This is a snapshot of my -mm patch queue. Uploaded at random hopefully
> > more than once a week.
> >
> > You will need quilt to apply these patches to the latest Linus release (5.x
> > or 5.x-rcY). The series file is in broken-out.tar.gz and is duplicated in
> > https://ozlabs.org/~akpm/mmotm/series
>
> on x86_64:
>
> ../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,
> ^~~~~~~~~~~~~~~~~~~~~~
>
> Full randconfig file is attached.
>

I suppose this is caused by having two different fixes applied, one that removes
the of_match_ptr(), and one that adds an #ifdef. Either one would be correct,
but the combination is not.

Arnd