Messages in this thread | | | Date | Mon, 21 Feb 2022 04:40:44 +0800 | From | kernel test robot <> | Subject | [ardb:arm64-ro-page-tables-pkvm-v5.17 27/28] include/asm-generic/memory_model.h:26:56: error: invalid operands to binary - (have 'pgtable_t' {aka 'pte_t *'} and 'struct page *') |
| |
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm-v5.17 head: 1faeabde0ba3c81ad666ab924ab79ef64843d40d commit: 5a6759851a4881d8ed981f899cea14c680c4fede [27/28] mm: HACK provide target address when migrating a PMD entry config: s390-randconfig-r044-20220220 (https://download.01.org/0day-ci/archive/20220221/202202210430.5h3lgiMQ-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 11.2.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=5a6759851a4881d8ed981f899cea14c680c4fede 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-v5.17 git checkout 5a6759851a4881d8ed981f899cea14c680c4fede # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash
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:60, from arch/s390/include/asm/preempt.h:6, from include/linux/preempt.h:78, from include/linux/spinlock.h:55, 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_zero_page_pmd': >> include/asm-generic/memory_model.h:26:56: error: invalid operands to binary - (have 'pgtable_t' {aka 'pte_t *'} and 'struct page *') 26 | #define __page_to_pfn(page) (unsigned long)((page) - vmemmap) | ^ arch/s390/include/asm/page.h:101:37: note: in definition of macro '__pmd' 101 | #define __pmd(x) ((pmd_t) { (x) } ) | ^ arch/s390/include/asm/page.h:173:33: 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:52:21: note: in expansion of macro '__page_to_pfn' 52 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ arch/s390/include/asm/page.h:173:45: 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:1956:42: note: in expansion of macro 'page_to_phys' 1956 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE)); | ^~~~~~~~~~~~ mm/huge_memory.c:1956:66: error: 'PMD_TYPE_TABLE' undeclared (first use in this function) 1956 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE)); | ^~~~~~~~~~~~~~ arch/s390/include/asm/page.h:101:37: note: in definition of macro '__pmd' 101 | #define __pmd(x) ((pmd_t) { (x) } ) | ^ mm/huge_memory.c:1956:66: note: each undeclared identifier is reported only once for each function it appears in 1956 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE)); | ^~~~~~~~~~~~~~ arch/s390/include/asm/page.h:101:37: note: in definition of macro '__pmd' 101 | #define __pmd(x) ((pmd_t) { (x) } ) | ^ mm/huge_memory.c: In function '__split_huge_pmd_locked': >> include/asm-generic/memory_model.h:26:56: error: invalid operands to binary - (have 'pgtable_t' {aka 'pte_t *'} and 'struct page *') 26 | #define __page_to_pfn(page) (unsigned long)((page) - vmemmap) | ^ arch/s390/include/asm/page.h:101:37: note: in definition of macro '__pmd' 101 | #define __pmd(x) ((pmd_t) { (x) } ) | ^ arch/s390/include/asm/page.h:173:33: 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:52:21: note: in expansion of macro '__page_to_pfn' 52 | #define page_to_pfn __page_to_pfn | ^~~~~~~~~~~~~ arch/s390/include/asm/page.h:173:45: 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:2137:42: note: in expansion of macro 'page_to_phys' 2137 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE)); | ^~~~~~~~~~~~ mm/huge_memory.c:2137:66: error: 'PMD_TYPE_TABLE' undeclared (first use in this function) 2137 | set_pmd_at(mm, haddr, pmd, __pmd(page_to_phys(pgtable) | PMD_TYPE_TABLE)); | ^~~~~~~~~~~~~~ arch/s390/include/asm/page.h:101:37: note: in definition of macro '__pmd' 101 | #define __pmd(x) ((pmd_t) { (x) } ) | ^
vim +26 include/asm-generic/memory_model.h
8f6aac419bd590 Christoph Lameter 2007-10-16 23 af901ca181d92a André Goddard Rosa 2009-11-14 24 /* memmap is virtually contiguous. */ 8f6aac419bd590 Christoph Lameter 2007-10-16 25 #define __pfn_to_page(pfn) (vmemmap + (pfn)) 32272a26974d20 Martin Schwidefsky 2008-12-25 @26 #define __page_to_pfn(page) (unsigned long)((page) - vmemmap) 8f6aac419bd590 Christoph Lameter 2007-10-16 27
:::::: The code at line 26 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@lists.01.org
| |