mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 23:23:03 +00:00
31e97d7c9a
This patch replaces max(a, min(b, c)) by clamp(b, a, c) in the solo6x10 driver. This improves the readability and more importantly, for the solo6x10-p2m.c file, this reduces on my system (x86-64, gcc 13): - the preprocessed size from 121 MiB to 4.5 MiB; - the build CPU time from 46.8 s to 1.6 s; - the build memory from 2786 MiB to 98MiB. In fine, this allows this relatively simple C file to be built on a 32-bit system. Reported-by: Jiri Slaby <jirislaby@gmail.com> Closes: https://lore.kernel.org/lkml/18c6df0d-45ed-450c-9eda-95160a2bbb8e@gmail.com/ Cc: <stable@vger.kernel.org> # v6.7+ Suggested-by: David Laight <David.Laight@ACULAB.COM> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: David Laight <David.Laight@ACULAB.COM> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
b2c2 | ||
bt8xx | ||
cobalt | ||
cx18 | ||
cx88 | ||
cx23885 | ||
cx25821 | ||
ddbridge | ||
dm1105 | ||
dt3155 | ||
intel | ||
ivtv | ||
mantis | ||
mgb4 | ||
netup_unidvb | ||
ngene | ||
pluto2 | ||
pt1 | ||
pt3 | ||
saa7134 | ||
saa7146 | ||
saa7164 | ||
smipcie | ||
solo6x10 | ||
sta2x11 | ||
ttpci | ||
tw68 | ||
tw686x | ||
tw5864 | ||
zoran | ||
Kconfig | ||
Makefile |