git: 953345922398 - main - riscv: Retire PMAP_INLINE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Nov 2023 18:47:42 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=953345922398ae6c029713087c8494a346d90c85
commit 953345922398ae6c029713087c8494a346d90c85
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-11-02 18:33:20 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-11-02 18:33:20 +0000
riscv: Retire PMAP_INLINE
pmap_kremove() is not called from within pmap.c, so there's no reason to
inline it. No functional change intended.
Reviewed by: alc, kib
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D42287
---
sys/riscv/riscv/pmap.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c
index 66054898b281..5747f04b7e0b 100644
--- a/sys/riscv/riscv/pmap.c
+++ b/sys/riscv/riscv/pmap.c
@@ -173,16 +173,6 @@
#define NUL1E (Ln_ENTRIES * NUL0E)
#define NUL2E (Ln_ENTRIES * NUL1E)
-#if !defined(DIAGNOSTIC)
-#ifdef __GNUC_GNU_INLINE__
-#define PMAP_INLINE __attribute__((__gnu_inline__)) inline
-#else
-#define PMAP_INLINE extern inline
-#endif
-#else
-#define PMAP_INLINE
-#endif
-
#ifdef PV_STATS
#define PV_STAT(x) do { x ; } while (0)
#define __pv_stat_used
@@ -1060,7 +1050,7 @@ pmap_kenter_device(vm_offset_t sva, vm_size_t size, vm_paddr_t pa)
* Remove a page from the kernel pagetables.
* Note: not SMP coherent.
*/
-PMAP_INLINE void
+void
pmap_kremove(vm_offset_t va)
{
pt_entry_t *l3;