zephyr/kernel/include
Andy Ross e59d19628d kernel/sched: Rework prio validity assertion
This is throwing errors in static analysis, complaining that comparing
that a prior is higher and lower is impossible.  That is wrong per my
eyes (I swear I think it might be cueing off the names of the
functions, which invert "higher" and "lower" to match our reversed
priority numbers).

But frankly this was never a very readable macro to begin with.
Refactor to put the bounds into the term, so the static analyzer can
prove it locally, and add a build assertion to catch any errors (there
are none currently) where the low<->high priority range is invalid.

Long term, we should probably remove this macro, it doesn't provide
much value.  But removing it in response to a static analysis failure
is... not very responsible as a development practice.

Fixes #14816
Fixes #14820

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-03-23 09:53:55 -05:00
..
gen_offset.h headers: Fix headers guards 2018-09-17 15:49:26 -04:00
kernel_internal.h kernel: enhance documentation of z_arch_buffer_validate 2019-03-13 15:36:15 -07:00
kernel_offsets.h kernel: Remove duplicated identifier 2018-11-04 11:37:24 -05:00
kernel_structs.h kernel/sched: arch/x86_64: Support synchronous k_thread_abort() in SMP 2019-03-13 19:15:20 +01:00
ksched.h kernel/sched: Rework prio validity assertion 2019-03-23 09:53:55 -05:00
kswap.h all: Update reserved function names 2019-03-11 13:48:42 -04:00
offsets_short.h x86: implement interrupt stack trampoline 2019-02-14 12:46:36 -05:00
syscall_handler.h userspace: properly namespace handler functions 2019-03-18 09:23:11 -07:00
timeout_q.h all: Update reserved function names 2019-03-11 13:48:42 -04:00
wait_q.h all: Update reserved function names 2019-03-11 13:48:42 -04:00