Re: Rust kernel policy
From: Steven Rostedt
Date: Fri Feb 21 2025 - 13:20:34 EST
On Fri, 21 Feb 2025 10:07:42 -0800
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> if (x < 0 || x >= 10) {
>
> just because 'x' may in some cases be an unsigned entity is not worth
> even discussing with.
>
> Educate yourself. The "unsigned smaller than 0" warning is not valid.
Bah, you're right. I wasn't looking at the x >= 10 part, and just fixed
a bug in user space that was caused by an unsigend < 0, and my mind was
on that.
Sorry for the noise here.
-- Steve