public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH v2 0/6] Small fio cleanups and fixes
@ 2022-04-27  9:11 Ammar Faizi
  2022-04-27  9:11 ` [PATCH v2 1/6] backend: Fix indentation Ammar Faizi
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Ammar Faizi @ 2022-04-27  9:11 UTC (permalink / raw)
  To: Jens Axboe; +Cc: fio Mailing List, GNU/Weeb Mailing List, Ammar Faizi

From: Ammar Faizi <[email protected]>

Hi Jens,

This is patchset v2. There 6 patches in this series. It contains small
cleanups and fixes:

- Patch 1 is just a trivial indentation fix.
- Patch 2, 3 are to add `ENOMEM` case error handling.
- Patch 4 is to replace `malloc()` + `memset()` with `calloc()`.
  Also, add ENOMEM hanling.
- Patch 5 is just a small optimization for json.
- Patch 6 is to fix warning from clang-15 when compiling the
  autogenerated file lex.yy.c.

## Changelog
v2:
  - Call `free()` properly when failure (use goto to do this) in
    patch #3.

  - Fix `calloc()` placement in patch #4.

Link v1: https://lore.kernel.org/fio/[email protected]/T/


Signed-off-by: Ammar Faizi <[email protected]>
---

Ammar Faizi (6):
  backend: Fix indentation
  cgroup: Handle `ENOMEM` case on `malloc()` call
  stat: Handle `ENOMEM` case in `__show_run_stats()`
  engines/net: Replace `malloc()` + `memset()` with `calloc()`
  json: Change `if (!strlen(str))` to `if (!str[0])`
  Makefile: Suppress `-Wimplicit-fallthrough` when compiling `lex.yy`

 Makefile      |  6 +++++-
 backend.c     |  2 +-
 cgroup.c      |  4 ++++
 engines/net.c |  9 +++++----
 json.c        |  2 +-
 stat.c        | 30 ++++++++++++++++++++++--------
 6 files changed, 38 insertions(+), 15 deletions(-)


base-commit: 5f2d43188c2d65674aaba6280e2a87107e5d7099
-- 
Ammar Faizi


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-04-27  9:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-27  9:11 [PATCH v2 0/6] Small fio cleanups and fixes Ammar Faizi
2022-04-27  9:11 ` [PATCH v2 1/6] backend: Fix indentation Ammar Faizi
2022-04-27  9:11 ` [PATCH v2 2/6] cgroup: Handle `ENOMEM` case on `malloc()` call Ammar Faizi
2022-04-27  9:11 ` [PATCH v2 3/6] stat: Handle `ENOMEM` case in `__show_run_stats()` Ammar Faizi
2022-04-27  9:35   ` Niklas Cassel
2022-04-27  9:52     ` Ammar Faizi
2022-04-27  9:11 ` [PATCH v2 4/6] engines/net: Replace `malloc()` + `memset()` with `calloc()` Ammar Faizi
2022-04-27  9:11 ` [PATCH v2 5/6] json: Change `if (!strlen(str))` to `if (!str[0])` Ammar Faizi
2022-04-27  9:11 ` [PATCH v2 6/6] Makefile: Suppress `-Wimplicit-fallthrough` when compiling `lex.yy` Ammar Faizi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox