linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mainline build failure due to b67fbebd4cf9 ("mmu_gather: Force tlb-flush VM_PFNMAP vmas")
@ 2022-07-22  7:53 Sudip Mukherjee (Codethink)
  2022-07-22 16:27 ` Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: Sudip Mukherjee (Codethink) @ 2022-07-22  7:53 UTC (permalink / raw)
  To: Peter Zijlstra, Will Deacon, Linus Torvalds
  Cc: Aneesh Kumar K.V, Andrew Morton, Nick Piggin, Arnd Bergmann,
	linux-arch, linux-mm, linux-kernel

Hi All,

The latest mainline kernel branch fails to build for alpha allmodconfig
with the error:

In file included from ./arch/alpha/include/asm/tlb.h:5,
                 from mm/oom_kill.c:48:
./include/asm-generic/tlb.h:401:1: error: redefinition of 'tlb_update_vma_flags'
  401 | tlb_update_vma_flags(struct mmu_gather *tlb, struct vm_area_struct *vma)
      | ^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/tlb.h:372:1: note: previous definition of 'tlb_update_vma_flags' with type 'void(struct mmu_gather *, struct vm_area_struct *)'
  372 | tlb_update_vma_flags(struct mmu_gather *tlb, struct vm_area_struct *vma) { }
      | ^~~~~~~~~~~~~~~~~~~~
In file included from ./arch/alpha/include/asm/tlb.h:5,
                 from arch/alpha/mm/init.c:32:
./include/asm-generic/tlb.h:401:1: error: redefinition of 'tlb_update_vma_flags'
  401 | tlb_update_vma_flags(struct mmu_gather *tlb, struct vm_area_struct *vma)
      | ^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/tlb.h:372:1: note: previous definition of 'tlb_update_vma_flags' with type 'void(struct mmu_gather *, struct vm_area_struct *)'
  372 | tlb_update_vma_flags(struct mmu_gather *tlb, struct vm_area_struct *vma) { }
      | ^~~~~~~~~~~~~~~~~~~~
In file included from ./arch/alpha/include/asm/tlb.h:5,
                 from kernel/sched/core.c:77:
./include/asm-generic/tlb.h:401:1: error: redefinition of 'tlb_update_vma_flags'
  401 | tlb_update_vma_flags(struct mmu_gather *tlb, struct vm_area_struct *vma)
      | ^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/tlb.h:372:1: note: previous definition of 'tlb_update_vma_flags' with type 'void(struct mmu_gather *, struct vm_area_struct *)'
  372 | tlb_update_vma_flags(struct mmu_gather *tlb, struct vm_area_struct *vma) { }
      | ^~~~~~~~~~~~~~~~~~~~
In file included from ./arch/alpha/include/asm/tlb.h:5,
                 from fs/proc/task_mmu.c:25:
./include/asm-generic/tlb.h:401:1: error: redefinition of 'tlb_update_vma_flags'
  401 | tlb_update_vma_flags(struct mmu_gather *tlb, struct vm_area_struct *vma)
      | ^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/tlb.h:372:1: note: previous definition of 'tlb_update_vma_flags' with type 'void(struct mmu_gather *, struct vm_area_struct *)'
  372 | tlb_update_vma_flags(struct mmu_gather *tlb, struct vm_area_struct *vma) { }
      | ^~~~~~~~~~~~~~~~~~~~

git bisect pointed to b67fbebd4cf9 ("mmu_gather: Force tlb-flush VM_PFNMAP vmas").
And, reverting that commit has fixed the build failure.

I will be happy to test any patch or provide any extra log if needed.

--
Regards
Sudip

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

* Re: mainline build failure due to b67fbebd4cf9 ("mmu_gather: Force tlb-flush VM_PFNMAP vmas")
  2022-07-22  7:53 mainline build failure due to b67fbebd4cf9 ("mmu_gather: Force tlb-flush VM_PFNMAP vmas") Sudip Mukherjee (Codethink)
@ 2022-07-22 16:27 ` Linus Torvalds
  2022-07-22 17:19   ` Sudip Mukherjee
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Torvalds @ 2022-07-22 16:27 UTC (permalink / raw)
  To: Sudip Mukherjee (Codethink)
  Cc: Peter Zijlstra, Will Deacon, Aneesh Kumar K.V, Andrew Morton,
	Nick Piggin, Arnd Bergmann, linux-arch, Linux-MM,
	Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 855 bytes --]

On Fri, Jul 22, 2022 at 12:53 AM Sudip Mukherjee (Codethink)
<sudipm.mukherjee@gmail.com> wrote:
>
> The latest mainline kernel branch fails to build for alpha allmodconfig
> with the error:

Gaah. It's the odd MMU_GATHER_NO_RANGE architectures - alpha, m68k,
microblaze, nios2 and openrisc.

We should probably get rid of that oddity, and force everybody to have
the ranged tlb flush functions, but for now the trivial patch is to
just remove the left-over dummy tlb_update_vma_flags() from that case,
I think.

Trivial patch attached. I don't have any cross-compiler for those
architectures on my machine, but I suspect I'll just commit it as-is
even without testing, since it can't be worse than what the situation
is right now with that "redefinition of 'tlb_update_vma_flags'"

But if you can verify, that would be lovely.

                    Linus

[-- Attachment #2: patch.diff --]
[-- Type: text/x-patch, Size: 504 bytes --]

 include/asm-generic/tlb.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h
index cb2167c89eee..492dce43236e 100644
--- a/include/asm-generic/tlb.h
+++ b/include/asm-generic/tlb.h
@@ -368,9 +368,6 @@ static inline void tlb_flush(struct mmu_gather *tlb)
 		flush_tlb_mm(tlb->mm);
 }
 
-static inline void
-tlb_update_vma_flags(struct mmu_gather *tlb, struct vm_area_struct *vma) { }
-
 #else /* CONFIG_MMU_GATHER_NO_RANGE */
 
 #ifndef tlb_flush

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

* Re: mainline build failure due to b67fbebd4cf9 ("mmu_gather: Force tlb-flush VM_PFNMAP vmas")
  2022-07-22 16:27 ` Linus Torvalds
@ 2022-07-22 17:19   ` Sudip Mukherjee
  2022-07-22 18:57     ` Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: Sudip Mukherjee @ 2022-07-22 17:19 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Peter Zijlstra, Will Deacon, Aneesh Kumar K.V, Andrew Morton,
	Nick Piggin, Arnd Bergmann, linux-arch, Linux-MM,
	Linux Kernel Mailing List

On Fri, Jul 22, 2022 at 5:28 PM Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
> On Fri, Jul 22, 2022 at 12:53 AM Sudip Mukherjee (Codethink)
> <sudipm.mukherjee@gmail.com> wrote:
> >
> > The latest mainline kernel branch fails to build for alpha allmodconfig
> > with the error:
>
> Gaah. It's the odd MMU_GATHER_NO_RANGE architectures - alpha, m68k,
> microblaze, nios2 and openrisc.
>
> We should probably get rid of that oddity, and force everybody to have
> the ranged tlb flush functions, but for now the trivial patch is to
> just remove the left-over dummy tlb_update_vma_flags() from that case,
> I think.
>
> Trivial patch attached. I don't have any cross-compiler for those
> architectures on my machine, but I suspect I'll just commit it as-is
> even without testing, since it can't be worse than what the situation
> is right now with that "redefinition of 'tlb_update_vma_flags'"

That fixes the alpha build failure.
If you commit it today then my nightly builds can test other
combinations of all other arch also.


-- 
Regards
Sudip

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

* Re: mainline build failure due to b67fbebd4cf9 ("mmu_gather: Force tlb-flush VM_PFNMAP vmas")
  2022-07-22 17:19   ` Sudip Mukherjee
@ 2022-07-22 18:57     ` Linus Torvalds
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 2022-07-22 18:57 UTC (permalink / raw)
  To: Sudip Mukherjee
  Cc: Peter Zijlstra, Will Deacon, Aneesh Kumar K.V, Andrew Morton,
	Nick Piggin, Arnd Bergmann, linux-arch, Linux-MM,
	Linux Kernel Mailing List

On Fri, Jul 22, 2022 at 10:20 AM Sudip Mukherjee
<sudipm.mukherjee@gmail.com> wrote:
>
> That fixes the alpha build failure.
> If you commit it today then my nightly builds can test other
> combinations of all other arch also.

Thanks.

It's commit 7fb5e5083190 ("mmu_gather: fix the
CONFIG_MMU_GATHER_NO_RANGE case") in my tree now.

I decided to not amend the commit, so it doesn't have your tested-by,
only your reported-by, but I put the link your report (this thread),
so it's kind of there.

                   Linus

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

end of thread, other threads:[~2022-07-22 18:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22  7:53 mainline build failure due to b67fbebd4cf9 ("mmu_gather: Force tlb-flush VM_PFNMAP vmas") Sudip Mukherjee (Codethink)
2022-07-22 16:27 ` Linus Torvalds
2022-07-22 17:19   ` Sudip Mukherjee
2022-07-22 18:57     ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).