Re: [PATCH] sparc: cacheflush_32.h needs <linux/mm.h>

From: Randy Dunlap
Date: Sat Apr 09 2022 - 11:11:53 EST




On 4/9/22 00:46, Sam Ravnborg wrote:
> Hi Randy,
>
> On Fri, Apr 08, 2022 at 11:02:15PM -0700, Randy Dunlap wrote:
>> Add <linux/mm.h> to cacheflush_32.h just as in cacheflush_64.h.
>
> Just add a forward declaration like this to fix it:
>
> struct page;
>
> No need to pull in a header file when a forward is enough.

Sure, will do.

> Maybe we could simplify sparc64 in a similar way, but that is another
> patch and it may require extra work in other files anyway.
>
> Sam

--
~Randy