]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/nohash: Remove pte_same()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 31 Jan 2022 08:16:48 +0000 (08:16 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Feb 2022 11:57:00 +0000 (22:57 +1100)
commit262b863899971e96d77aba4ef6896f2a6df54a1b
treea0827d1441158aea7a16204b21aa26f93ea8f0d6
parentd913a886dd1d049bee68b2fc14a50fcd95cca701
powerpc/nohash: Remove pte_same()

arch/powerpc/include/asm/nohash/{32/64}/pgtable.h has

#define __HAVE_ARCH_PTE_SAME
#define pte_same(A,B)      ((pte_val(A) ^ pte_val(B)) == 0)

include/linux/pgtable.h has

#ifndef __HAVE_ARCH_PTE_SAME
static inline int pte_same(pte_t pte_a, pte_t pte_b)
{
return pte_val(pte_a) == pte_val(pte_b);
}
#endif

Remove the powerpc version which is similar to the generic one.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/83c97bd58a3596ef1b0ff28b1e41fd492d005520.1643616989.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/nohash/32/pgtable.h
arch/powerpc/include/asm/nohash/64/pgtable.h