[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <aNU8moQVmqvduSPU@sirena.org.uk>
Date: Thu, 25 Sep 2025 13:59:06 +0100
From: Mark Brown <broonie@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Alexandre Ghiti <alexghiti@...osinc.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Next Mailing List <linux-next@...r.kernel.org>,
Paul Walmsley <pjw@...nel.org>
Subject: linux-next: manual merge of the mm-stable tree with the mm-hotfixes
tree
Hi all,
Today's linux-next merge of the mm-stable tree got a conflict in:
arch/riscv/include/asm/pgtable.h
between commit:
668208b161a0b ("riscv: use an atomic xchg in pudp_huge_get_and_clear()")
from the mm-hotfixes tree and commit:
546e42c8c6d94 ("riscv: Use an atomic xchg in pudp_huge_get_and_clear()")
from the mm-stable tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
diff --cc arch/riscv/include/asm/pgtable.h
index 8150677429398,e69346307e786..0000000000000
--- a/arch/riscv/include/asm/pgtable.h
+++ b/arch/riscv/include/asm/pgtable.h
@@@ -944,15 -944,9 +944,15 @@@ static inline int pudp_test_and_clear_y
#define __HAVE_ARCH_PUDP_HUGE_GET_AND_CLEAR
static inline pud_t pudp_huge_get_and_clear(struct mm_struct *mm,
- unsigned long address, pud_t *pudp)
+ unsigned long address, pud_t *pudp)
{
+#ifdef CONFIG_SMP
- pud_t pud = __pud(xchg(&pudp->pud, 0));
+ pud_t pud = __pud(atomic_long_xchg((atomic_long_t *)pudp, 0));
+#else
+ pud_t pud = *pudp;
+
+ pud_clear(pudp);
+#endif
page_table_check_pud_clear(mm, pud);
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists