* [ardb:arm64-ro-page-tables-pkvm 3/18] include/asm-generic/memory_model.h:55:52: error: invalid operands to binary - (have 'pgtable_t' {aka 'struct <anonymous> and 'struct page
@ 2021-02-27 2:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-27 2:14 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4753 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm
head: c5266cc8ebfbdcc7e1ea856a82beb017d0a4f611
commit: 59ebe17c5fd61622da88cab6da5079414a207885 [3/18] mm: HACK provide target address when migrating a PMD entry
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=59ebe17c5fd61622da88cab6da5079414a207885
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb arm64-ro-page-tables-pkvm
git checkout 59ebe17c5fd61622da88cab6da5079414a207885
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/s390/include/asm/thread_info.h:26,
from include/linux/thread_info.h:56,
from arch/s390/include/asm/preempt.h:6,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from mm/huge_memory.c:8:
mm/huge_memory.c: In function '__split_huge_pmd_locked':
>> include/asm-generic/memory_model.h:55:52: error: invalid operands to binary - (have 'pgtable_t' {aka 'struct <anonymous> *'} and 'struct page *')
55 | #define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
| ^
arch/s390/include/asm/page.h:98:37: note: in definition of macro '__pmd'
98 | #define __pmd(x) ((pmd_t) { (x) } )
| ^
arch/s390/include/asm/page.h:173:28: note: in expansion of macro 'pfn_to_phys'
173 | #define page_to_phys(page) pfn_to_phys(page_to_pfn(page))
| ^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
81 | #define page_to_pfn __page_to_pfn
| ^~~~~~~~~~~~~
arch/s390/include/asm/page.h:173:40: note: in expansion of macro 'page_to_pfn'
173 | #define page_to_phys(page) pfn_to_phys(page_to_pfn(page))
| ^~~~~~~~~~~
mm/huge_memory.c:2191:35: note: in expansion of macro 'page_to_phys'
2191 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE));
| ^~~~~~~~~~~~
mm/huge_memory.c:2191:59: error: 'PMD_TYPE_TABLE' undeclared (first use in this function)
2191 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE));
| ^~~~~~~~~~~~~~
arch/s390/include/asm/page.h:98:37: note: in definition of macro '__pmd'
98 | #define __pmd(x) ((pmd_t) { (x) } )
| ^
mm/huge_memory.c:2191:59: note: each undeclared identifier is reported only once for each function it appears in
2191 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE));
| ^~~~~~~~~~~~~~
arch/s390/include/asm/page.h:98:37: note: in definition of macro '__pmd'
98 | #define __pmd(x) ((pmd_t) { (x) } )
| ^
vim +55 include/asm-generic/memory_model.h
8f6aac419bd590 Christoph Lameter 2007-10-16 52
af901ca181d92a André Goddard Rosa 2009-11-14 53 /* memmap is virtually contiguous. */
8f6aac419bd590 Christoph Lameter 2007-10-16 54 #define __pfn_to_page(pfn) (vmemmap + (pfn))
32272a26974d20 Martin Schwidefsky 2008-12-25 @55 #define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
8f6aac419bd590 Christoph Lameter 2007-10-16 56
:::::: The code at line 55 was first introduced by commit
:::::: 32272a26974d2027384fd4010cd1780fca425d94 [S390] __page_to_pfn warnings
:::::: TO: Martin Schwidefsky <schwidefsky@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 52060 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-27 2:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-27 2:14 [ardb:arm64-ro-page-tables-pkvm 3/18] include/asm-generic/memory_model.h:55:52: error: invalid operands to binary - (have 'pgtable_t' {aka 'struct <anonymous> and 'struct page kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.