lkml.org 
[lkml]   [2023]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [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

\
 
 \ /
  Last update: 2023-08-23 10:10    [W:0.059 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site