Re: [PATCH] microblaze: Make virt_to_pfn() a static inline

From: Linus Walleij
Date: Wed Aug 23 2023 - 04:10:10 EST


On Tue, Aug 8, 2023 at 10:40 AM Linus Walleij <linus.walleij@xxxxxxxxxx> wrote:

> +static inline const void *pfn_to_virt(unsigned long pfn)

I think maybe I should not have put const there. It means the
pointer shouldn't be modified and I think there is code that
does that, or cast to some other pointer which is not const:ed
and then use things like ++ on the resulting type.

If you run into compile warnings you can just delete the const,
or I can send a follow-up patch.

Yours,
Linus Walleij