aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-09-10 16:39:51 +0100
committerMark Brown <broonie@kernel.org>2022-09-10 16:39:51 +0100
commit824723ccf53fc53ecf896753c562b00a5d6307eb (patch)
treec0ec150c4510eb161ba57a7fd39a1393f3b77cdd /include/linux/overflow.h
parentspi: Group cs_change and cs_off flags together in struct spi_transfer (diff)
parentLinux 6.0-rc4 (diff)
downloadlinux-dev-824723ccf53fc53ecf896753c562b00a5d6307eb.tar.xz
linux-dev-824723ccf53fc53ecf896753c562b00a5d6307eb.zip
spi: Merge tag 'v6.0-rc4' into spi-6.1
Linux 6.0-rc4 so we can test on BeagleBone again.
Diffstat (limited to 'include/linux/overflow.h')
-rw-r--r--include/linux/overflow.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/overflow.h b/include/linux/overflow.h
index f1221d11f8e5..0eb3b192f07a 100644
--- a/include/linux/overflow.h
+++ b/include/linux/overflow.h
@@ -30,7 +30,6 @@
* https://mail-index.netbsd.org/tech-misc/2007/02/05/0000.html -
* credit to Christian Biere.
*/
-#define is_signed_type(type) (((type)(-1)) < (type)1)
#define __type_half_max(type) ((type)1 << (8*sizeof(type) - 1 - is_signed_type(type)))
#define type_max(T) ((T)((__type_half_max(T) - 1) + __type_half_max(T)))
#define type_min(T) ((T)((T)-type_max(T)-(T)1))