Messages in this thread | | | From | Linus Walleij <> | Date | Wed, 23 Aug 2023 10:07:43 +0200 | Subject | Re: [PATCH] microblaze: Make virt_to_pfn() a static inline |
| |
On Tue, Aug 8, 2023 at 10:40 AM Linus Walleij <linus.walleij@linaro.org> 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
| |