Skip to content

refine the MIN/MAX macros

Li Wang ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3include: replace min/max macro by the new definitioninclude/ipcmsg.h include/libnewipc.h testcases/kernel/mem/mmapstress/mmapstress01.c +6 more+8 -162 replies
2/3lib: adding unnecessary pointer comparisoninclude/tst_minmax.h+2 -01 reply
3/3minmax: ensure the comparison numbers have compatible typelib/tst_cgroup.c lib/tst_memutils.c lib/tst_timer_test.c +1 more+6 -62 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPetr Vorel
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [LTP] [PATCH 0/3] refine the MIN/MAX macros

Add type checking to MIN/MAX and make use of them for both new and old testcases.

Li Wang (3):
include: replace min/max macro by the new definition
lib: adding unnecessary pointer comparison
minmax: ensure the comparison numbers have compatible type

 include/ipcmsg.h                                      | 2 --
 include/libnewipc.h                                   | 1 -
 include/tst_minmax.h                                  | 2 ++
 lib/tst_cgroup.c                                      | 2 +-
 lib/tst_memutils.c                                    | 4 ++--
 lib/tst_timer_test.c                                  | 4 ++--
 testcases/kernel/mem/mmapstress/mmapstress01.c        | 3 +--
 testcases/kernel/mem/mmapstress/mmapstress09.c        | 1 -
 testcases/kernel/mem/mmapstress/mmapstress10.c        | 3 +--
 testcases/kernel/security/cap_bound/cap_bounds_r.c    | 3 +--
 testcases/kernel/security/cap_bound/cap_bounds_rw.c   | 7 +++----
 testcases/kernel/syscalls/fallocate/fallocate06.c     | 2 +-
 testcases/kernel/syscalls/ipc/msgstress/msgstress01.c | 2 +-
 testcases/kernel/syscalls/ipc/msgstress/msgstress02.c | 2 +-
 14 files changed, 16 insertions(+), 22 deletions(-)
Signature · 5 lines
2.31.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp