git: 0fc121a6c13e - stable/15 - sched_ule: sched_priority(): More accurate __unused annotation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Jul 2026 04:34:57 UTC
The branch stable/15 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=0fc121a6c13e82ec6cbeaecf90fc49ca11691796
commit 0fc121a6c13e82ec6cbeaecf90fc49ca11691796
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-06-15 21:07:00 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-07-24 04:33:34 +0000
sched_ule: sched_priority(): More accurate __unused annotation
Change a '__unused' to '__diagused', which is more precise for that use.
No functional change.
MFC after: 1 week
Event: Halifax Hackathon 202606
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 83a6946595829407c80075f33e49329d1b621522)
---
sys/kern/sched_ule.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index c6bfe15e768b..02eb2cbb1b9e 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1760,7 +1760,7 @@ sched_priority(struct thread *td)
} else {
const struct td_sched *const ts = td_get_sched(td);
const u_int run = SCHED_TICK_RUN_SHIFTED(ts);
- const u_int run_unshifted __unused = (run +
+ const u_int run_unshifted __diagused = (run +
(1 << SCHED_TICK_SHIFT) / 2) >> SCHED_TICK_SHIFT;
const u_int len = SCHED_TICK_LENGTH(ts);
const u_int nice_pri_off = SCHED_PRI_NICE(nice);