From: Helge Deller <deller@kernel.org>
To: linux-parisc@vger.kernel.org
Subject: [PATCH 2/2] parisc: Drop redundant implementation of ptep_set_wrprotect()
Date: Sat, 25 Jul 2026 21:02:07 +0200 [thread overview]
Message-ID: <20260725190207.113620-2-deller@kernel.org> (raw)
In-Reply-To: <20260725190207.113620-1-deller@kernel.org>
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
prev parent reply other threads:[~2026-07-25 19:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-25 19:02 [PATCH 1/2] parisc: Drop redundant implementation of pte_same() Helge Deller
2026-07-25 19:02 ` Helge Deller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260725190207.113620-2-deller@kernel.org \
--to=deller@kernel.org \
--cc=linux-parisc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox