lkml.org 
[lkml]   [2017]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCHv2 1/2] arm: Cleanup sanity_check_meminfo
From
Date
On 01/05/2017 08:17 PM, Nicolas Pitre wrote:
> On Thu, 5 Jan 2017, Laura Abbott wrote:
>
>>
>> The logic for sanity_check_meminfo has become difficult to
>> follow. Clean up the code so it's more obvious what the code
>> is actually trying to do. Additionally, meminfo is now removed
>> so rename the function to better describe it's purpose.
>
> s/it's/its/
>
>> Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
>> Signed-off-by: Laura Abbott <labbott@redhat.com>
>> ---
>> v2: Fixed code so b9a019899f61 ("ARM: 8590/1: sanity_check_meminfo():
>> avoid overflow on vmalloc_limit") should stay fixed. The casting and assignment
>> still seem ugly.
>
> Are you referring to the initial vmalloc_limit assignment?
>

I was referring to the min_t with u64 that gets assigned to phys_addr_t.
for lowmem_limit

>> @@ -1172,43 +1170,19 @@ void __init sanity_check_meminfo(void)
>> for_each_memblock(memory, reg) {
>> phys_addr_t block_start = reg->base;
>> phys_addr_t block_end = reg->base + reg->size;
>> - phys_addr_t size_limit = reg->size;
>>
>> - if (reg->base >= vmalloc_limit)
>> - highmem = 1;
>> - else
>> - size_limit = vmalloc_limit - reg->base;
>>
>> -
> [...]
>
> This leaves a spurious empty line. One was already there before your
> patch but this would be a good opportunity to remove it.
>
> Other than that...
>
> Reviewed-by: Nicolas Pitre <nico@linaro.org>
>
>
> Nicolas
>

Thanks,
Laura

\
 
 \ /
  Last update: 2017-01-10 02:08    [W:0.168 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site