diff options
| author | Linus Torvalds <[email protected]> | 2024-07-29 00:32:05 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2024-07-29 03:23:27 +0000 |
| commit | cb04e8b1d2f24c4c2c92f7b7529031fc35a16fed (patch) | |
| tree | 78d27543d36ecb38102070bf5e640551f4ebfdae /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | minmax: scsi: fix mis-use of 'clamp()' in sr.c (diff) | |
| download | kernel-cb04e8b1d2f24c4c2c92f7b7529031fc35a16fed.tar.gz kernel-cb04e8b1d2f24c4c2c92f7b7529031fc35a16fed.zip | |
minmax: don't use max() in situations that want a C constant expression
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 <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
