The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=57bb132e98b0736d15881eb80aba6c2c5dd8ac28

commit 57bb132e98b0736d15881eb80aba6c2c5dd8ac28
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-01-22 05:22:15 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-01-29 18:11:54 +0000

    maybe_preempt(): make static in sched_4bsd.c
    
    Reviewed by:    olce
    Tested by:      pho
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D54831
---
 sys/kern/sched_4bsd.c | 2 +-
 sys/sys/proc.h        | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 504f9a2338ef..e40b5c6c6b7f 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -322,7 +322,7 @@ maybe_resched(struct thread *td)
  * determines if the new thread should preempt the current thread.  If so,
  * it sets td_owepreempt to request a preemption.
  */
-int
+static int
 maybe_preempt(struct thread *td)
 {
 #ifdef PREEMPTION
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index b27b67999e8b..0c9658fff725 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -1173,7 +1173,6 @@ void      kern_proc_vmmap_resident(struct vm_map *map, 
struct vm_map_entry *entry,
 void   kern_yield(int);
 void   killjobc(void);
 int    leavepgrp(struct proc *p);
-int    maybe_preempt(struct thread *td);
 void   maybe_yield(void);
 void   mi_switch(int flags);
 int    p_candebug(struct thread *td, struct proc *p);

Reply via email to