[PATCH v1 0/6] Small fio cleanups and fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx>

Hi Jens,

This series 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()`.
- Patch 5 is just a small optimization for json.
- Patch 6 is to fix clang-15 warning when compiling autogenerated file, lex.yy.c.

Signed-off-by: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx>
---

Ammar Faizi (6):
  backend: Fix indentation
  get_cgroup_root: Handle `ENOMEM` case on `malloc()` call
  stat: Handle `ENOMEM` case on `malloc()` call
  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 | 10 ++++++----
 json.c        |  2 +-
 stat.c        | 13 +++++++++++++
 6 files changed, 30 insertions(+), 7 deletions(-)


base-commit: 5f2d43188c2d65674aaba6280e2a87107e5d7099
-- 
Ammar Faizi




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux