diff options
| author | David Laight <[email protected]> | 2024-11-18 19:15:51 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-01-25 06:47:27 +0000 |
| commit | 2b97aaf74ed534fb838d09867d09a3ca5d795208 (patch) | |
| tree | 1e233a236625d21a0794f3664c9aea8dde6aa186 /lib/test_xarray.c | |
| parent | minmax.h: simplify the variants of clamp() (diff) | |
| download | kernel-2b97aaf74ed534fb838d09867d09a3ca5d795208.tar.gz kernel-2b97aaf74ed534fb838d09867d09a3ca5d795208.zip | |
minmax.h: remove some #defines that are only expanded once
The bodies of __signed_type_use() and __unsigned_type_use() are much the
same size as their names - so put the bodies in the only line that expands
them.
Similarly __signed_type() is defined separately for 64bit and then used
exactly once just below.
Change the test for __signed_type from CONFIG_64BIT to one based on gcc
defined macros so that the code is valid if it gets used outside of a
kernel build.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: David Laight <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Jason A. Donenfeld <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: Mateusz Guzik <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Pedro Falcato <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions
