From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from integral2.. (unknown [180.246.147.8]) by gnuweeb.org (Postfix) with ESMTPSA id 8641E7E77D; Tue, 26 Apr 2022 21:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1651008074; bh=hUvg0Hg9TyzeJeeJU8afGHGEVNVOs2dJUiLRFnX72vU=; h=From:To:Cc:Subject:Date:From; b=RsIXy5jNftCcNU5bSuX/50JraOBddETWQHa8DFey2kcANbMbAWY2wjqSv/y0Eh4As IXftNBWE86qFSJq4mKHcpFCcxS7uh08K8d87TedZ3hrHmxiGefNTOr5+qq6702xKZS T9g6yoe7UaZQged1b79KNXqYgveyDFT9xFsT2H9SKhOULyOD1yeesA5fngXXStAr+7 0N8AKOBHjLycshjsnvzXvR84R4+xpQ4TJcmW09kamYF1uZReW9duEQ5j+Q4/7X0JCa 1/EkKl/DEJYdbkoiFFUlOQoI26u954Gt454lWGDgT4bAGvJqBFBCcTc28TiB6qHXSK 7ceVuH4n+95Ww== From: Ammar Faizi To: Jens Axboe Cc: fio Mailing List , GNU/Weeb Mailing List , Ammar Faizi Subject: [PATCH v1 0/6] Small fio cleanups and fixes Date: Wed, 27 Apr 2022 04:20:38 +0700 Message-Id: <20220426212044.78898-1-ammarfaizi2@gnuweeb.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Ammar Faizi 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 --- 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