On Fri, Jun 25, 2021 at 01:17:24PM +0300, Dan Carpenter wrote:
> Hello Peter Zijlstra,
> 
> The patch 2f064a59a11f: "sched: Change task_struct::state" from Jun
> 11, 2021, leads to the following static checker warning:
> 
>       kernel/debug/kdb/kdb_support.c:624 kdb_task_state_char()
>       warn: unsigned 'p_state' is never less than zero.

Pre-existing fail that.. but yes that code (and it's carbon copy in
arch/powerpc/xmon/xmon.c) are clearly bogus and have been for a long
time afaict.

Ideally someone that cares about this code can replace it with
get_task_state() or something.


_______________________________________________
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to