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

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