git: 00c537586fdf - stable/14 - riscv: Retire PMAP_INLINE

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 09 Nov 2023 14:40:31 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=00c537586fdf5044f0cd52e566d4c18163b61e77

commit 00c537586fdf5044f0cd52e566d4c18163b61e77
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-11-02 18:33:20 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-11-09 14:40:04 +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
    
    (cherry picked from commit 953345922398ae6c029713087c8494a346d90c85)
---
 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 49ee54b37918..1d1d0fc839ca 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
@@ -1054,7 +1044,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;