Linux PARISC architecture development
 help / color / mirror / Atom feed
* [PATCH 1/2] parisc: Drop redundant implementation of pte_same()
@ 2026-07-25 19:02 Helge Deller
  2026-07-25 19:02 ` [PATCH 2/2] parisc: Drop redundant implementation of ptep_set_wrprotect() Helge Deller
  0 siblings, 1 reply; 2+ messages in thread
From: Helge Deller @ 2026-07-25 19:02 UTC (permalink / raw)
  To: linux-parisc

From: Helge Deller <deller@gmx.de>

Signed-off-by: Helge Deller <deller@gmx.de>
---
 arch/parisc/include/asm/pgtable.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h
index d92dee9fef3f..a042131553d5 100644
--- a/arch/parisc/include/asm/pgtable.h
+++ b/arch/parisc/include/asm/pgtable.h
@@ -441,8 +441,6 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr,
 	set_pte_at(mm, addr, ptep, pte_wrprotect(*ptep));
 }
 
-#define pte_same(A,B)	(pte_val(A) == pte_val(B))
-
 #endif /* !__ASSEMBLER__ */
 
 
@@ -475,6 +473,5 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr,
 #define __HAVE_ARCH_PTEP_CLEAR_YOUNG_FLUSH
 #define __HAVE_ARCH_PTEP_CLEAR_FLUSH
 #define __HAVE_ARCH_PTEP_SET_WRPROTECT
-#define __HAVE_ARCH_PTE_SAME
 
 #endif /* _PARISC_PGTABLE_H */
-- 
2.54.0


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

* [PATCH 2/2] parisc: Drop redundant implementation of ptep_set_wrprotect()
  2026-07-25 19:02 [PATCH 1/2] parisc: Drop redundant implementation of pte_same() Helge Deller
@ 2026-07-25 19:02 ` Helge Deller
  0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2026-07-25 19:02 UTC (permalink / raw)
  To: linux-parisc

From: Helge Deller <deller@gmx.de>

Signed-off-by: Helge Deller <deller@gmx.de>
---
 arch/parisc/include/asm/pgtable.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h
index a042131553d5..2dda06fcd35c 100644
--- a/arch/parisc/include/asm/pgtable.h
+++ b/arch/parisc/include/asm/pgtable.h
@@ -435,12 +435,6 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte)
 bool ptep_clear_flush_young(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep);
 pte_t ptep_clear_flush(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep);
 
-struct mm_struct;
-static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
-{
-	set_pte_at(mm, addr, ptep, pte_wrprotect(*ptep));
-}
-
 #endif /* !__ASSEMBLER__ */
 
 
@@ -472,6 +466,5 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr,
 
 #define __HAVE_ARCH_PTEP_CLEAR_YOUNG_FLUSH
 #define __HAVE_ARCH_PTEP_CLEAR_FLUSH
-#define __HAVE_ARCH_PTEP_SET_WRPROTECT
 
 #endif /* _PARISC_PGTABLE_H */
-- 
2.54.0


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

end of thread, other threads:[~2026-07-25 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-25 19:02 [PATCH 1/2] parisc: Drop redundant implementation of pte_same() Helge Deller
2026-07-25 19:02 ` [PATCH 2/2] parisc: Drop redundant implementation of ptep_set_wrprotect() Helge Deller

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