Re: [PATCH v2] tracing: Make is_signed_type() compatible with sparse
From: Linus Torvalds
Date: Tue Sep 01 2026 - 15:22:37 EST
On Tue, 1 Sept 2026 at 11:05, Bart Van Assche <bvanassche@xxxxxxx> wrote:
>
> How about the changes shown below (should be split into two patches)?
This really is too ugly.
I think we should fix this in sparse, not in the kernel.
There is no reason for "is this a signed type" to be that complicated,
and add that kind of nasty code in a header that is this fundamental
to the kernel and gets included in every single file that gets
compiled.
Basic rule: sparse should never make the kernel worse.
Linus