Re: [PATCH -next] sched_ext: Fixes incorrect type in bpf_scx_init()
From: Tejun Heo
Date: Mon Jul 15 2024 - 00:43:31 EST
On Mon, Jul 15, 2024 at 10:10:26AM +0800, Jiapeng Chong wrote:
> The type_id is defined as u32type, if(type_id<0) is invalid, hence
> modified its type to s32.
>
> ./kernel/sched/ext.c:4958:5-12: WARNING: Unsigned expression compared with zero: type_id < 0.
>
> Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9523
> Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>
Applied to sched_ext/for-6.11.
Thanks.
--
tejun