From: kernel test robot <lkp@intel.com>
To: "Alex Shi (Tencent)" <alexs@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [alexshi:mmunstable 36/38] include/linux/mm_types.h:512:41: error: passing argument 3 of 'pmd_populate' from incompatible pointer type
Date: Sat, 20 Jul 2024 13:47:51 +0800 [thread overview]
Message-ID: <202407201306.NLb2aJOR-lkp@intel.com> (raw)
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
reply other threads:[~2024-07-20 5:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202407201306.NLb2aJOR-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexs@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.