Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7BF3C433EF for ; Tue, 26 Apr 2022 21:21:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbiDZVYY (ORCPT ); Tue, 26 Apr 2022 17:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241799AbiDZVYX (ORCPT ); Tue, 26 Apr 2022 17:24:23 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5440139983 for ; Tue, 26 Apr 2022 14:21:14 -0700 (PDT) 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 Precedence: bulk List-ID: X-Mailing-List: fio@vger.kernel.org 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