From: kernel test robot <lkp@intel.com>
To: Palmer Dabbelt <palmer@rivosinc.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [linux-next:master 13920/14010] arch/riscv/mm/tlbflush.c:195:16: error: redefinition of 'start'
Date: Sat, 29 Mar 2025 00:54:11 +0800 [thread overview]
Message-ID: <202503290040.CiWtsZNi-lkp@intel.com> (raw)
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
reply other threads:[~2025-03-28 16:54 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=202503290040.CiWtsZNi-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=palmer@rivosinc.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox