-
- Downloads
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 <David.Laight@aculab.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c 1 addition, 1 deletiondrivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
- drivers/input/touchscreen/cyttsp4_core.c 1 addition, 1 deletiondrivers/input/touchscreen/cyttsp4_core.c
- drivers/irqchip/irq-sun6i-r.c 1 addition, 1 deletiondrivers/irqchip/irq-sun6i-r.c
- drivers/net/can/usb/etas_es58x/es58x_devlink.c 1 addition, 1 deletiondrivers/net/can/usb/etas_es58x/es58x_devlink.c
- fs/btrfs/tree-checker.c 1 addition, 1 deletionfs/btrfs/tree-checker.c
- lib/vsprintf.c 1 addition, 1 deletionlib/vsprintf.c
Loading
Please register or sign in to comment