linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* ./include/asm-generic/tlb.h:629:10: error: parameter 'ptep' set but not used
@ 2024-04-16 10:26 Miguel Ojeda
  2024-04-16 13:51 ` David Hildenbrand
  0 siblings, 1 reply; 4+ messages in thread
From: Miguel Ojeda @ 2024-04-16 10:26 UTC (permalink / raw)
  To: david, Arnd Bergmann, Huacai Chen, WANG Xuerui
  Cc: Andrew Morton, Ryan Roberts, linux-arch, Linux-MM, linux-kernel,
	loongarch, clang-built-linux

Hi David, Arnd, LoongArch,

In a linux-next defconfig LLVM=1 build today I got:

    ./include/asm-generic/tlb.h:629:10: error: parameter 'ptep' set
but not used [-Werror,-Wunused-but-set-parameter]
      629 |                 pte_t *ptep, unsigned int nr, unsigned long address)
          |                        ^

Indeed, in loongarch, `__tlb_remove_tlb_entry` does not do anything.
This seems the same that Arnd reported for arm64:

    https://lore.kernel.org/all/20240221154549.2026073-1-arnd@kernel.org/

So perhaps the loongarch's one should also be changed into an static inline?

I hope that helps!

Cheers,
Miguel


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

end of thread, other threads:[~2024-04-16 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16 10:26 ./include/asm-generic/tlb.h:629:10: error: parameter 'ptep' set but not used Miguel Ojeda
2024-04-16 13:51 ` David Hildenbrand
2024-04-16 14:14   ` Arnd Bergmann
2024-04-16 14:41     ` Huacai Chen

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