[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2e826560-4005-fa16-8bbb-fc0e25763dcc@arm.com>
Date: Fri, 6 Sep 2019 16:17:38 +0100
From: James Morse <james.morse@....com>
To: Pavel Tatashin <pasha.tatashin@...een.com>
Cc: jmorris@...ei.org, sashal@...nel.org, ebiederm@...ssion.com,
kexec@...ts.infradead.org, linux-kernel@...r.kernel.org,
corbet@....net, catalin.marinas@....com, will@...nel.org,
linux-arm-kernel@...ts.infradead.org, marc.zyngier@....com,
vladimir.murzin@....com, matthias.bgg@...il.com,
bhsharma@...hat.com, linux-mm@...ck.org, mark.rutland@....com
Subject: Re: [PATCH v3 04/17] arm64, hibernate: rename dst to page in
create_safe_exec_page
Hi Pavel,
On 21/08/2019 19:31, Pavel Tatashin wrote:
> create_safe_exec_page() allocates a safe page and maps it at a
> specific location, also this function returns the physical address
> of newly allocated page.
>
> The destination VA, and PA are specified in arguments: dst_addr,
> phys_dst_addr
>
> However, within the function it uses "dst" which has unsigned long
> type, but is actually a pointers in the current virtual space. This
> is confusing to read.
The type? There are plenty of places in the kernel that an unsigned-long is actually a
pointer. This isn't unusual.
> Rename dst to more appropriate page (page that is created), and also
> change its time to "void *"
If you think its clearer,
Reviewed-by: James Morse <james.morse@....com>
Thanks,
James
Powered by blists - more mailing lists