]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
<linux/compiler_types.h>: Add the __signed_scalar_typeof() helper
authorPeter Zijlstra <peterz@infradead.org>
Thu, 27 Nov 2025 15:39:44 +0000 (16:39 +0100)
committerIngo Molnar <mingo@kernel.org>
Sun, 14 Dec 2025 07:25:02 +0000 (08:25 +0100)
commit38a68b982dd0b10e3da943f100e034598326eafe
tree7091332f0da70b2fdc70b7a4ad00ac634e96d134
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
<linux/compiler_types.h>: Add the __signed_scalar_typeof() helper

Define __signed_scalar_typeof() to declare a signed scalar type, leaving
non-scalar types unchanged.

To be used to clean up the scheduler load-balancing code a bit.

[ mingo: Split off this patch from the scheduler patch. ]

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Shrikanth Hegde <sshegde@linux.ibm.com>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://patch.msgid.link/20251127154725.413564507@infradead.org
include/linux/compiler_types.h