* [PATCH v1] LoongArch/tlb: fix "error: parameter 'ptep' set but not used" due to __tlb_remove_tlb_entry()
@ 2024-04-16 14:49 David Hildenbrand
2024-04-16 19:24 ` Miguel Ojeda
0 siblings, 1 reply; 5+ messages in thread
From: David Hildenbrand @ 2024-04-16 14:49 UTC (permalink / raw)
To: linux-kernel
Cc: kvm, linux-arch, loongarch, llvm, David Hildenbrand,
Miguel Ojeda, Arnd Bergmann, Andrew Morton, Huacai Chen,
WANG Xuerui, Nathan Chancellor
With LLVM=1 and W=1 we get:
./include/asm-generic/tlb.h:629:10: error: parameter 'ptep' set
but not used [-Werror,-Wunused-but-set-parameter]
We fixed a similar issue via Arnd in the introducing commit, missed the
loongarch variant. Turns out, there is no need for loongarch to have a
custom variant, so let's just drop it and rely on the asm-generic one.
Reported-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Closes: https://lkml.kernel.org/r/CANiq72mQh3O9S4umbvrKBgMMorty48UMwS01U22FR0mRyd3cyQ@mail.gmail.com
Fixes: 4d5bf0b6183f ("mm/mmu_gather: add tlb_remove_tlb_entries()")
Tested-by: Arnd Bergmann <arnd@arndb.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: WANG Xuerui <kernel@xen0n.name>
Cc: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
---
arch/loongarch/include/asm/tlb.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/loongarch/include/asm/tlb.h b/arch/loongarch/include/asm/tlb.h
index da7a3b5b9374a..e071f5e9e8580 100644
--- a/arch/loongarch/include/asm/tlb.h
+++ b/arch/loongarch/include/asm/tlb.h
@@ -132,8 +132,6 @@ static __always_inline void invtlb_all(u32 op, u32 info, u64 addr)
);
}
-#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
-
static void tlb_flush(struct mmu_gather *tlb);
#define tlb_flush tlb_flush
--
2.44.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v1] LoongArch/tlb: fix "error: parameter 'ptep' set but not used" due to __tlb_remove_tlb_entry()
2024-04-16 14:49 [PATCH v1] LoongArch/tlb: fix "error: parameter 'ptep' set but not used" due to __tlb_remove_tlb_entry() David Hildenbrand
@ 2024-04-16 19:24 ` Miguel Ojeda
2024-04-17 3:18 ` Huacai Chen
0 siblings, 1 reply; 5+ messages in thread
From: Miguel Ojeda @ 2024-04-16 19:24 UTC (permalink / raw)
To: David Hildenbrand
Cc: linux-kernel, kvm, linux-arch, loongarch, llvm, Arnd Bergmann,
Andrew Morton, Huacai Chen, WANG Xuerui, Nathan Chancellor
On Tue, Apr 16, 2024 at 4:49 PM David Hildenbrand <david@redhat.com> wrote:
>
> With LLVM=1 and W=1 we get:
Hmm... I didn't need W=1 to trigger it (LLVM 18.1.2).
> Reported-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Thanks, looks good to me -- built-tested:
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Tested-by: Miguel Ojeda <ojeda@kernel.org>
Cheers,
Miguel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] LoongArch/tlb: fix "error: parameter 'ptep' set but not used" due to __tlb_remove_tlb_entry()
2024-04-16 19:24 ` Miguel Ojeda
@ 2024-04-17 3:18 ` Huacai Chen
2024-04-17 20:58 ` Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Huacai Chen @ 2024-04-17 3:18 UTC (permalink / raw)
To: Miguel Ojeda
Cc: David Hildenbrand, linux-kernel, kvm, linux-arch, loongarch,
llvm, Arnd Bergmann, Andrew Morton, WANG Xuerui,
Nathan Chancellor
Queued for loongarch-fixes, thanks.
Huacai
On Wed, Apr 17, 2024 at 3:25 AM Miguel Ojeda
<miguel.ojeda.sandonis@gmail.com> wrote:
>
> On Tue, Apr 16, 2024 at 4:49 PM David Hildenbrand <david@redhat.com> wrote:
> >
> > With LLVM=1 and W=1 we get:
>
> Hmm... I didn't need W=1 to trigger it (LLVM 18.1.2).
>
> > Reported-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
>
> Thanks, looks good to me -- built-tested:
>
> Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
> Tested-by: Miguel Ojeda <ojeda@kernel.org>
>
> Cheers,
> Miguel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] LoongArch/tlb: fix "error: parameter 'ptep' set but not used" due to __tlb_remove_tlb_entry()
2024-04-17 3:18 ` Huacai Chen
@ 2024-04-17 20:58 ` Andrew Morton
2024-04-18 3:03 ` Huacai Chen
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2024-04-17 20:58 UTC (permalink / raw)
To: Huacai Chen
Cc: Miguel Ojeda, David Hildenbrand, linux-kernel, kvm, linux-arch,
loongarch, llvm, Arnd Bergmann, WANG Xuerui, Nathan Chancellor
On Wed, 17 Apr 2024 11:18:27 +0800 Huacai Chen <chenhuacai@kernel.org> wrote:
> On Wed, Apr 17, 2024 at 3:25 AM Miguel Ojeda
> <miguel.ojeda.sandonis@gmail.com> wrote:
> >
> > On Tue, Apr 16, 2024 at 4:49 PM David Hildenbrand <david@redhat.com> wrote:
> > >
> > > With LLVM=1 and W=1 we get:
> >
> > Hmm... I didn't need W=1 to trigger it (LLVM 18.1.2).
> >
> > > Reported-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
> >
> > Thanks, looks good to me -- built-tested:
> >
> > Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
> > Tested-by: Miguel Ojeda <ojeda@kernel.org>
> >
>
> Queued for loongarch-fixes, thanks.
>
(top-posting repaired so I can sensibly reply to this. Please avoid
top-posting!)
I'd rather carry this in mm.git with your ack please. Otherwise mm.git
won't compile without it and if I retain this patch we'll get
duplicate-patch emails from Stephen and I won't be able to merge
mm.git's mm-nonmm-stable tree into Linus until loongarch-fixes has
merged.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] LoongArch/tlb: fix "error: parameter 'ptep' set but not used" due to __tlb_remove_tlb_entry()
2024-04-17 20:58 ` Andrew Morton
@ 2024-04-18 3:03 ` Huacai Chen
0 siblings, 0 replies; 5+ messages in thread
From: Huacai Chen @ 2024-04-18 3:03 UTC (permalink / raw)
To: Andrew Morton
Cc: Miguel Ojeda, David Hildenbrand, linux-kernel, kvm, linux-arch,
loongarch, llvm, Arnd Bergmann, WANG Xuerui, Nathan Chancellor
Hi, Andrew,
On Thu, Apr 18, 2024 at 4:58 AM Andrew Morton <akpm@linux-foundation.org> wrote:
>
> On Wed, 17 Apr 2024 11:18:27 +0800 Huacai Chen <chenhuacai@kernel.org> wrote:
>
> > On Wed, Apr 17, 2024 at 3:25 AM Miguel Ojeda
> > <miguel.ojeda.sandonis@gmail.com> wrote:
> > >
> > > On Tue, Apr 16, 2024 at 4:49 PM David Hildenbrand <david@redhat.com> wrote:
> > > >
> > > > With LLVM=1 and W=1 we get:
> > >
> > > Hmm... I didn't need W=1 to trigger it (LLVM 18.1.2).
> > >
> > > > Reported-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
> > >
> > > Thanks, looks good to me -- built-tested:
> > >
> > > Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
> > > Tested-by: Miguel Ojeda <ojeda@kernel.org>
> > >
> >
> > Queued for loongarch-fixes, thanks.
> >
>
> (top-posting repaired so I can sensibly reply to this. Please avoid
> top-posting!)
Sorry, I only top-posting with "Queued ...", "Applied ..." because I
saw others do like this. If this is also unacceptable, I will not do
it again.
>
> I'd rather carry this in mm.git with your ack please. Otherwise mm.git
> won't compile without it and if I retain this patch we'll get
> duplicate-patch emails from Stephen and I won't be able to merge
> mm.git's mm-nonmm-stable tree into Linus until loongarch-fixes has
> merged.
loongarch-next always merges loongarch-fixes, so when I apply a patch
it will be in linux-next. Now this patch I have already applied to
loongarch-fixes and loongarch-next. In future, I will give an Acked-by
for you if needed.
Huacai
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-18 3:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16 14:49 [PATCH v1] LoongArch/tlb: fix "error: parameter 'ptep' set but not used" due to __tlb_remove_tlb_entry() David Hildenbrand
2024-04-16 19:24 ` Miguel Ojeda
2024-04-17 3:18 ` Huacai Chen
2024-04-17 20:58 ` Andrew Morton
2024-04-18 3:03 ` Huacai Chen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.