* [alexshi:mmunstable 36/38] include/linux/mm_types.h:512:41: error: passing argument 3 of 'pmd_populate' from incompatible pointer type
@ 2024-07-20 5:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-20 5:47 UTC (permalink / raw)
To: Alex Shi (Tencent); +Cc: oe-kbuild-all
tree: https://github.com/alexshi/linux.git mmunstable
head: b17c1bbf65811ff797f57b7ddc4fdf4b86d86030
commit: 46417a6009d8064f174e7987dae8288f5cd9c4eb [36/38] pass ptdesc to pmd_populate
config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20240720/202407201306.NLb2aJOR-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240720/202407201306.NLb2aJOR-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407201306.NLb2aJOR-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/mmzone.h:22,
from include/linux/topology.h:33,
from include/linux/irq.h:19,
from include/asm-generic/hardirq.h:17,
from ./arch/riscv/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:9,
from mm/memory.c:43:
mm/memory.c: In function 'pmd_install':
>> include/linux/mm_types.h:512:41: error: passing argument 3 of 'pmd_populate' from incompatible pointer type [-Wincompatible-pointer-types]
510 | #define page_ptdesc(p) (_Generic((p), \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
511 | const struct page *: (const struct ptdesc *)(p), \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
512 | struct page *: (struct ptdesc *)(p)))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
| |
| struct ptdesc *
mm/memory.c:440:39: note: in expansion of macro 'page_ptdesc'
440 | pmd_populate(mm, pmd, page_ptdesc(*pte));
| ^~~~~~~~~~~
In file included from mm/memory.c:86:
arch/riscv/include/asm/pgalloc.h:36:31: note: expected 'pgtable_t' {aka 'struct page *'} but argument is of type 'struct ptdesc *'
36 | pmd_t *pmd, pgtable_t pte)
| ~~~~~~~~~~^~~
--
In file included from include/linux/mmzone.h:22,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from mm/mremap.c:11:
mm/mremap.c: In function 'move_normal_pmd':
>> include/linux/mm_types.h:512:41: error: passing argument 3 of 'pmd_populate' from incompatible pointer type [-Wincompatible-pointer-types]
510 | #define page_ptdesc(p) (_Generic((p), \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
511 | const struct page *: (const struct ptdesc *)(p), \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
512 | struct page *: (struct ptdesc *)(p)))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
| |
| struct ptdesc *
mm/mremap.c:286:35: note: in expansion of macro 'page_ptdesc'
286 | pmd_populate(mm, new_pmd, page_ptdesc(pmd_pgtable(pmd)));
| ^~~~~~~~~~~
In file included from mm/mremap.c:31:
arch/riscv/include/asm/pgalloc.h:36:31: note: expected 'pgtable_t' {aka 'struct page *'} but argument is of type 'struct ptdesc *'
36 | pmd_t *pmd, pgtable_t pte)
| ~~~~~~~~~~^~~
vim +/pmd_populate +512 include/linux/mm_types.h
9a35de4ffc209b Vishal Moola (Oracle 2023-08-07 501)
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 502) #define ptdesc_page(pt) (_Generic((pt), \
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 503) const struct ptdesc *: (const struct page *)(pt), \
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 504) struct ptdesc *: (struct page *)(pt)))
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 505)
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 506) #define ptdesc_folio(pt) (_Generic((pt), \
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 507) const struct ptdesc *: (const struct folio *)(pt), \
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 508) struct ptdesc *: (struct folio *)(pt)))
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 509)
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 510) #define page_ptdesc(p) (_Generic((p), \
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 511) const struct page *: (const struct ptdesc *)(p), \
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 @512) struct page *: (struct ptdesc *)(p)))
bf2d4334f72e4e Vishal Moola (Oracle 2023-08-07 513)
:::::: The code at line 512 was first introduced by commit
:::::: bf2d4334f72e4e033166c5a3bf1331a7238eab9d mm: add utility functions for ptdesc
:::::: TO: Vishal Moola (Oracle) <vishal.moola@gmail.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-20 5:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-20 5:47 [alexshi:mmunstable 36/38] include/linux/mm_types.h:512:41: error: passing argument 3 of 'pmd_populate' from incompatible pointer type 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.