public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [linux-next:master 13920/14010] arch/riscv/mm/tlbflush.c:195:16: error: redefinition of 'start'
@ 2025-03-28 16:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-28 16:54 UTC (permalink / raw)
  To: Palmer Dabbelt; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e21edb1638e82460f126a6e49bcdd958d452929c
commit: 5744739d8ce78876d4b62a20fd6bc65f01ba142e [13920/14010] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git
config: riscv-randconfig-002-20250328 (https://download.01.org/0day-ci/archive/20250329/202503290040.CiWtsZNi-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 7eccafc3c84606587a175c0a8c1ebea6e4fb21cd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250329/202503290040.CiWtsZNi-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/202503290040.CiWtsZNi-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/riscv/mm/tlbflush.c:195:16: error: redefinition of 'start'
     195 |         unsigned long start = uaddr & PAGE_MASK;
         |                       ^
   arch/riscv/mm/tlbflush.c:193:39: note: previous definition is here
     193 |                 struct mm_struct *mm, unsigned long start, unsigned long end)
         |                                                     ^
>> arch/riscv/mm/tlbflush.c:195:24: error: use of undeclared identifier 'uaddr'
     195 |         unsigned long start = uaddr & PAGE_MASK;
         |                               ^
   2 errors generated.


vim +/start +195 arch/riscv/mm/tlbflush.c

54d7431af73e2f Alexandre Ghiti 2024-01-08  191  
54d7431af73e2f Alexandre Ghiti 2024-01-08  192  void arch_tlbbatch_add_pending(struct arch_tlbflush_unmap_batch *batch,
2f4ab3ac10e147 Barry Song      2025-02-14  193  		struct mm_struct *mm, unsigned long start, unsigned long end)
54d7431af73e2f Alexandre Ghiti 2024-01-08  194  {
d9be2b9b60497a Alexandre Ghiti 2025-01-13 @195  	unsigned long start = uaddr & PAGE_MASK;
d9be2b9b60497a Alexandre Ghiti 2025-01-13  196  
54d7431af73e2f Alexandre Ghiti 2024-01-08  197  	cpumask_or(&batch->cpumask, &batch->cpumask, mm_cpumask(mm));
d9be2b9b60497a Alexandre Ghiti 2025-01-13  198  	mmu_notifier_arch_invalidate_secondary_tlbs(mm, start, start + PAGE_SIZE);
54d7431af73e2f Alexandre Ghiti 2024-01-08  199  }
54d7431af73e2f Alexandre Ghiti 2024-01-08  200  

:::::: The code at line 195 was first introduced by commit
:::::: d9be2b9b60497a82aeceec3a98d8b37fdd2960f2 riscv: Call secondary mmu notifier when flushing the tlb

:::::: TO: Alexandre Ghiti <alexghiti@rivosinc.com>
:::::: CC: Alexandre Ghiti <alexghiti@rivosinc.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-28 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-28 16:54 [linux-next:master 13920/14010] arch/riscv/mm/tlbflush.c:195:16: error: redefinition of 'start' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox