git: 83a694659582 - main - sched_ule: sched_priority(): More accurate __unused annotation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Jun 2026 19:35:26 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=83a6946595829407c80075f33e49329d1b621522
commit 83a6946595829407c80075f33e49329d1b621522
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-06-15 21:07:00 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-06-23 19:34:54 +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
---
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);