From: kernel test robot <lkp@intel.com>
To: alexs@kernel.org
Cc: oe-kbuild-all@lists.linux.dev
Subject: [alexshi:mmunstable 37/41] include/linux/mm_types.h:512:41: error: passing argument 3 of 'pmd_populate' from incompatible pointer type
Date: Wed, 24 Jul 2024 21:44:39 +0800 [thread overview]
Message-ID: <202407242136.DN0aW8Ti-lkp@intel.com> (raw)
tree: https://github.com/alexshi/linux.git mmunstable
head: 45de53e1a6ceb1ede64b54126f9ee514f50c4e4c
commit: 5f711d4ecc7f0a6cf15ad4c1bd3eba8224c7dca0 [37/41] mm/pgtable: introduce ptdesc_pfn and pass ptdesc to pmd_populate
config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20240724/202407242136.DN0aW8Ti-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/20240724/202407242136.DN0aW8Ti-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/202407242136.DN0aW8Ti-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/riscv/include/asm/tlb.h:32,
from arch/riscv/include/asm/pgalloc.h:12,
from mm/memory.c:86:
mm/memory.c: In function 'free_pte_range':
mm/memory.c:194:27: error: passing argument 2 of '__pte_free_tlb' from incompatible pointer type [-Wincompatible-pointer-types]
194 | pte_free_tlb(tlb, token, addr);
| ^~~~~
| |
| struct ptdesc *
include/asm-generic/tlb.h:706:37: note: in definition of macro 'pte_free_tlb'
706 | __pte_free_tlb(tlb, ptep, address); \
| ^~~~
arch/riscv/include/asm/pgalloc.h:186:69: note: expected 'pgtable_t' {aka 'struct page *'} but argument is of type 'struct ptdesc *'
186 | static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t pte,
| ~~~~~~~~~~^~~
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));
| ^~~~~~~~~~~
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-24 13:45 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=202407242136.DN0aW8Ti-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.