lkml.org 
[lkml]   [2021]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: linux-next: Tree for Apr 6 (arch/x86/mm/init_64.c)
From
Date
On 4/6/21 5:31 AM, Stephen Rothwell wrote:
> Hi all,
>
> Changes since 20210401:
>

on x86_64:
# CONFIG_SPARSEMEM_VMEMMAP is not set


gcc (SUSE Linux) 7.5.0


../arch/x86/mm/init_64.c: In function 'remove_pmd_table':
../arch/x86/mm/init_64.c:1127:8: error: implicit declaration of function 'vmemmap_pmd_is_unused'; did you mean 'vmemmap_pmd_populate'? [-Werror=implicit-function-declaration]
vmemmap_pmd_is_unused(addr, next)) {
^~~~~~~~~~~~~~~~~~~~~
vmemmap_pmd_populate


Looks like that compound "if" is too much for gcc 7.5.0 to handle:

} else if (IS_ENABLED(CONFIG_SPARSEMEM_VMEMMAP) &&
vmemmap_pmd_is_unused(addr, next)) {
free_hugepage_table(pmd_page(*pmd),
altmap);
spin_lock(&init_mm.page_table_lock);
pmd_clear(pmd);
spin_unlock(&init_mm.page_table_lock);
}


--
~Randy
Reported-by: Randy Dunlap <rdunlap@infradead.org>

\
 
 \ /
  Last update: 2021-04-06 20:33    [W:0.070 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site