Skip to contentSkip to conversation

arch/arc/include/asm/mmu-arcv2.h:82:9: error: implicit declaration of function 'write_aux_reg'

PATCH kernel test robot 1 participant 1 message Apr 5, 2024 Memory management

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head:   60b650ba203e33686b6c3aacf1556805811f8e9e
commit: 627dbcce529e56c04348944e6ffa9cdeebe9fe76 [43/300] asm-generic/io.h: kill vmalloc.h dependency
config: arc-defconfig (https://download.01.org/0day-ci/archive/20240405/[email protected]/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240405/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

In file included from arch/arc/include/asm/mmu.h:21,

                    from arch/arc/include/asm/pgtable.h:14,
                    from include/linux/pgtable.h:6,
                    from include/asm-generic/io.h:1047,
                    from arch/arc/include/asm/io.h:232,
                    from include/linux/io.h:13,
                    from kernel/dma/coherent.c:6:
   arch/arc/include/asm/mmu-arcv2.h: In function 'mmu_setup_asid':
>> arch/arc/include/asm/mmu-arcv2.h:82:9: error: implicit declaration of function 'write_aux_reg' [-Werror=implicit-function-declaration]
      82 |         write_aux_reg(ARC_REG_PID, asid | MMU_ENABLE);
         |         ^~~~~~~~~~~~~

cc1: some warnings being treated as errors

vim +/write_aux_reg +82 arch/arc/include/asm/mmu-arcv2.h

2cc1121bc993ca Vineet Gupta 2020-10-01  79  
2cc1121bc993ca Vineet Gupta 2020-10-01  80  static inline void mmu_setup_asid(struct mm_struct *mm, unsigned long asid)
2cc1121bc993ca Vineet Gupta 2020-10-01  81  {

2cc1121bc993ca Vineet Gupta 2020-10-01 @82 write_aux_reg(ARC_REG_PID, asid | MMU_ENABLE);
2cc1121bc993ca Vineet Gupta 2020-10-01 83 }
2cc1121bc993ca Vineet Gupta 2020-10-01 84

:::::: The code at line 82 was first introduced by commit
:::::: 2cc1121bc993ca3090cc4267bc38d3da61b68602 ARC: mm: disintegrate mmu.h (arcv2 bits out)

:::::: TO: Vineet Gupta <[email protected]>
:::::: CC: Vineet Gupta <[email protected]>

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