[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNART2bL8C4yW5+-mP0aG=Depm3mrfLzKnhQuu3hnNSzTWA@mail.gmail.com>
Date: Tue, 12 Nov 2019 16:53:49 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org
Cc: Arnd Bergmann <arnd@...db.de>,
linux-arch <linux-arch@...r.kernel.org>
Subject: Re: [PATCH] mm: fixmap: convert __set_fixmap_offset() to an inline function
Hi Andrew,
On Fri, Nov 8, 2019 at 9:42 PM Masahiro Yamada
<yamada.masahiro@...ionext.com> wrote:
>
> I just stopped by the ugly variable name, ________addr.
> (8 underscores!)
>
> If this is just a matter of casting to (unsigned long), this variable
> is unneeded since you can do like this:
>
> ({ \
> __set_fixmap(idx, phys, flags); \
> (unsigned long)(fix_to_virt(idx) + ((phys) & (PAGE_SIZE - 1))); \
> })
>
> However, I'd rather like to change it to an inline function since it
> is more readable, and the parameter types are clearer.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
Unfortunately, this patch broke building ppc, mips, etc.
(Not all arch implement __set_fixmap)
Could you drop it from your tree?
Thanks.
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists