git: 8515934ce3c2 - main - sys/sched.h: make sched_clear_tdname() function prototypes unconditional

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Thu, 29 Jan 2026 18:12:19 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=8515934ce3c290765df9254003f3c6d79da7e538

commit 8515934ce3c290765df9254003f3c6d79da7e538
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-01-22 04:00:59 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-01-29 18:11:54 +0000

    sys/sched.h: make sched_clear_tdname() function prototypes unconditional
    
    There is no harm in having unused prototypes.
    
    Reviewed by:    olce
    Tested by:      pho
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D54831
---
 sys/sys/sched.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/sys/sched.h b/sys/sys/sched.h
index 052b8bb85f2f..f3a5d1eca874 100644
--- a/sys/sys/sched.h
+++ b/sys/sys/sched.h
@@ -174,9 +174,7 @@ int	sched_sizeof_thread(void);
  * functions.
  */
 char	*sched_tdname(struct thread *td);
-#ifdef KTR
 void	sched_clear_tdname(struct thread *td);
-#endif
 
 static __inline void
 sched_pin(void)