linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-new 158/177] arch/riscv/include/asm/pgtable.h:934:24: error: implicit declaration of function 'pte_mkdevmap'; did you mean 'pud_mkdevmap'?
@ 2025-06-19  8:03 kernel test robot
  2025-06-19 22:49 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-06-19  8:03 UTC (permalink / raw)
  To: Alistair Popple
  Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List,
	Björn Töpel, Jason Gunthorpe

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head:   98743cca1551b038cdec987961c609f2fb0beb83
commit: 8aed601c58980f1f7cd45d5373e739f87d22d028 [158/177] mm: remove devmap related functions and page table bits
config: riscv-randconfig-r132-20250619 (https://download.01.org/0day-ci/archive/20250619/202506191536.2hMhapuP-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 15.1.0
reproduce: (https://download.01.org/0day-ci/archive/20250619/202506191536.2hMhapuP-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/202506191536.2hMhapuP-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/pgtable.h:6,
                    from include/linux/mm.h:31,
                    from arch/riscv/kernel/asm-offsets.c:8:
   arch/riscv/include/asm/pgtable.h: In function 'pud_mkdevmap':
>> arch/riscv/include/asm/pgtable.h:934:24: error: implicit declaration of function 'pte_mkdevmap'; did you mean 'pud_mkdevmap'? [-Wimplicit-function-declaration]
     934 |         return pte_pud(pte_mkdevmap(pud_pte(pud)));
         |                        ^~~~~~~~~~~~
         |                        pud_mkdevmap
>> arch/riscv/include/asm/pgtable.h:934:24: error: incompatible type for argument 1 of 'pte_pud'
     934 |         return pte_pud(pte_mkdevmap(pud_pte(pud)));
         |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
         |                        |
         |                        int
   arch/riscv/include/asm/pgtable.h:675:35: note: expected 'pte_t' but argument is of type 'int'
     675 | static inline pud_t pte_pud(pte_t pte)
         |                             ~~~~~~^~~
   make[3]: *** [scripts/Makefile.build:182: arch/riscv/kernel/asm-offsets.s] Error 1
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1274: prepare0] Error 2
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:248: __sub-make] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +934 arch/riscv/include/asm/pgtable.h

c3cc2a4a3a23fa Alexandre Ghiti 2025-03-21  931  
c3cc2a4a3a23fa Alexandre Ghiti 2025-03-21  932  static inline pud_t pud_mkdevmap(pud_t pud)
c3cc2a4a3a23fa Alexandre Ghiti 2025-03-21  933  {
c3cc2a4a3a23fa Alexandre Ghiti 2025-03-21 @934  	return pte_pud(pte_mkdevmap(pud_pte(pud)));
c3cc2a4a3a23fa Alexandre Ghiti 2025-03-21  935  }
c3cc2a4a3a23fa Alexandre Ghiti 2025-03-21  936  

:::::: The code at line 934 was first introduced by commit
:::::: c3cc2a4a3a23faf6b88459471c1c16ab3837cc2f riscv: Add support for PUD THP

:::::: TO: Alexandre Ghiti <alexghiti@rivosinc.com>
:::::: CC: Palmer Dabbelt <palmer@dabbelt.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [akpm-mm:mm-new 158/177] arch/riscv/include/asm/pgtable.h:934:24: error: implicit declaration of function 'pte_mkdevmap'; did you mean 'pud_mkdevmap'?
  2025-06-19  8:03 [akpm-mm:mm-new 158/177] arch/riscv/include/asm/pgtable.h:934:24: error: implicit declaration of function 'pte_mkdevmap'; did you mean 'pud_mkdevmap'? kernel test robot
@ 2025-06-19 22:49 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2025-06-19 22:49 UTC (permalink / raw)
  To: kernel test robot
  Cc: Alistair Popple, oe-kbuild-all, Linux Memory Management List,
	Björn Töpel, Jason Gunthorpe

On Thu, 19 Jun 2025 16:03:23 +0800 kernel test robot <lkp@intel.com> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
> head:   98743cca1551b038cdec987961c609f2fb0beb83
> commit: 8aed601c58980f1f7cd45d5373e739f87d22d028 [158/177] mm: remove devmap related functions and page table bits
> config: riscv-randconfig-r132-20250619 (https://download.01.org/0day-ci/archive/20250619/202506191536.2hMhapuP-lkp@intel.com/config)
> compiler: riscv64-linux-gcc (GCC) 15.1.0
> reproduce: (https://download.01.org/0day-ci/archive/20250619/202506191536.2hMhapuP-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/202506191536.2hMhapuP-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from include/linux/pgtable.h:6,
>                     from include/linux/mm.h:31,
>                     from arch/riscv/kernel/asm-offsets.c:8:
>    arch/riscv/include/asm/pgtable.h: In function 'pud_mkdevmap':
> >> arch/riscv/include/asm/pgtable.h:934:24: error: implicit declaration of function 'pte_mkdevmap'; did you mean 'pud_mkdevmap'? [-Wimplicit-function-declaration]
>      934 |         return pte_pud(pte_mkdevmap(pud_pte(pud)));
>          |                        ^~~~~~~~~~~~
>          |                        pud_mkdevmap

Thanks.  This series is looking a little battle scarred, so I'll drop
this version.

TODOs which I have accumulated are:

https://lkml.kernel.org/r/bf855ce0-d0ba-4bd6-bfc1-8be2fdbdfe70@redhat.com
https://lkml.kernel.org/r/6afc2e67-3ecb-41a5-9c8f-00ecd64f035a@redhat.com
https://lkml.kernel.org/r/5vxfjvgl5qu6n5qzru62mmk6saudeslt5f6fu4luhuezf6lh2p@dhz65hzro27h
https://lkml.kernel.org/r/31bdbfcf-bbfa-46b7-a427-806d42d88cec@redhat.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-19 22:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19  8:03 [akpm-mm:mm-new 158/177] arch/riscv/include/asm/pgtable.h:934:24: error: implicit declaration of function 'pte_mkdevmap'; did you mean 'pud_mkdevmap'? kernel test robot
2025-06-19 22:49 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).