Files
linux-stable-mirror/fs
Linus Torvalds 89f6bf22d0 minmax: don't use max() in situations that want a C constant expression
[ Upstream commit cb04e8b1d2 ]

We only had a couple of array[] declarations, and changing them to just
use 'MAX()' instead of 'max()' fixes the issue.

This will allow us to simplify our min/max macros enormously, since they
can now unconditionally use temporary variables to avoid using the
argument values multiple times.

Cc: David Laight <David.Laight@aculab.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Eliav Farber <farbere@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-19 16:21:52 +02:00
..
2025-10-19 16:21:28 +02:00
2025-10-19 16:21:49 +02:00
2024-10-22 15:40:40 +02:00
2024-02-23 08:54:51 +01:00
2025-03-13 12:49:51 +01:00
2025-10-19 16:21:28 +02:00
2025-04-10 14:31:50 +02:00
2024-03-01 13:21:43 +01:00
2025-03-13 12:49:50 +01:00