The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=953345922398ae6c029713087c8494a346d90c85

commit 953345922398ae6c029713087c8494a346d90c85
Author:     Mark Johnston <[email protected]>
AuthorDate: 2023-11-02 18:33:20 +0000
Commit:     Mark Johnston <[email protected]>
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;

Reply via email to