Re: [RFC PATCH v3 04/37] mm/damon/core: implement damon_report_page_fault()

SeongJae Park
2025-12-12T22:47:25Z

On Fri, 12 Dec 2025 21:46:03 +0900 JaeJoon Jung <rgbi3307@gmail.com> wrote:

> On Mon, 8 Dec 2025 at 15:33, SeongJae Park <sj@kernel.org> wrote:
> >
> > Implement a DAMON core API for reporting page fault events to DAMON. It
> > is a wrapper of damon_report_access().
> >
> > This is a temporal hack. In future versions that will have no RFC tag,
> > only damon_report_access() may be used.
>
> It's a minor, but git am throws an error when applying the [RFC PATCH v3 04/37]
> patch file.

Interesting. I can do 'git am' this patch without error on mm-new branch. Are
you using something other than mm-new as your baseline?

> I am testing it by modifying it as follows.
> damon_report_access() is
> called by damon_report_page_fault(), so they depend on each other.
>
> #ifdef CONFIG_MMU
> void damon_report_access(struct damon_access_report *report);
> void damon_report_page_fault(struct vm_fault *vmf, bool huge_pmd);
> #else
> static inline void damon_report_access(struct damon_access_report *report)
> {
> }
> static inline void damon_report_page_fault(struct vm_fault *vmf, bool huge_pmd)
> {
> }
> #endif

Seems this is not for fixing a 'git am' error but build error...? Can you
share what error exactly you are seeing?

Thanks,
SJ …