Re: [PATCH] base/memory: pass the base_section in add_memory_block

From: Greg KH
Date: Tue Jun 13 2017 - 09:43:48 EST


On Wed, Jun 07, 2017 at 04:52:12PM +0800, Wei Yang wrote:
> The second parameter of init_memory_block() is used to calculate the
> start_section_nr of this block, which means any section in the same block
> would get the same start_section_nr.
>
> This patch passes the base_section to init_memory_block(), so that to
> reduce a local variable and a check in every loop.
>
> Signed-off-by: Wei Yang <richard.weiyang@xxxxxxxxx>
> ---
> drivers/base/memory.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)

Can you resend this and cc: linux-mm? I think the developers there need
to review this.

thanks,

greg k-h