From patchwork Thu Sep 16 06:23:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 12498123 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0253C433F5 for ; Thu, 16 Sep 2021 06:23:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6E36660F6D for ; Thu, 16 Sep 2021 06:23:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6E36660F6D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 0C16F940007; Thu, 16 Sep 2021 02:23:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0977C6B0072; Thu, 16 Sep 2021 02:23:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EC7EE940007; Thu, 16 Sep 2021 02:23:07 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0178.hostedemail.com [216.40.44.178]) by kanga.kvack.org (Postfix) with ESMTP id DFA826B0071 for ; Thu, 16 Sep 2021 02:23:07 -0400 (EDT) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 832042D4AF for ; Thu, 16 Sep 2021 06:23:07 +0000 (UTC) X-FDA: 78592444014.09.8DAAF51 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf19.hostedemail.com (Postfix) with ESMTP id 40310B0000AC for ; Thu, 16 Sep 2021 06:23:07 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 5899D60E76; Thu, 16 Sep 2021 06:23:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631773386; bh=y6i0mll5ycxRMhkwuLJkyH6J5MoI0QZBK20JbH3dz9g=; h=From:To:Cc:Subject:Date:From; b=q13cRJ01f0d/JVXT6QJ4J7m4w5Y2QI+Ek3CnCCOsAfVq+GqWh48m5xfkeZRvM0eLk WhvUQQjZbpUldT6xQ75gj1S9GCQuCZB5oME9zPc9xocN+WzY7kmFhTajmzbu4qVV8x uqlnXGlEJvHZybvWeRimrzdsdEI3y+akzHbY4grhaGkNoPu2mX6IvUM1HWgH/58nGs 7umgdQopOGRcfaHj4dUGDgyjk2+jzs12smBI07hGfEBD23zRDzdGSQhBzYgUsbJwPQ I+AjByUEjuYyDQ/cfJKxyMVMDAf/g8wJc9aN3FmbK9Y2LBV577IYNCZsCRxjMpuAml SZAQD+cKsXBPw== From: Masami Hiramatsu To: Steven Rostedt Cc: Linus Torvalds , Mike Rapoport , Andrew Morton , LKML , Ingo Molnar , Masami Hiramatsu , Linux-MM , Vlastimil Babka Subject: [PATCH v4 0/4] bootconfig: Fixes to bootconfig memory management etc. Date: Thu, 16 Sep 2021 15:23:03 +0900 Message-Id: <163177338366.682366.5998343833719057348.stgit@devnote2> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 MIME-Version: 1.0 Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=q13cRJ01; spf=pass (imf19.hostedemail.com: domain of mhiramat@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=mhiramat@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-Stat-Signature: 5xgrx8xdsncz5akhn9tc1xmauew753br X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 40310B0000AC X-HE-Tag: 1631773387-329445 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Steve, Here are the 4th version of the series to fix bootconfig memory management issues and API cleanup. In this version, I added patches to move the memory allocation for the bootconfig in xbc_init() [2/4], add xbc_get_info()[3/4], and rename xbc_destroy_all()[4/4]. Thank you, --- Masami Hiramatsu (4): bootconfig: init: Fix memblock leak in xbc_make_cmdline() bootconfig: Allocate xbc_data inside xbc_init() bootconfig: Add xbc_get_info() for the node information bootconfig: Rename xbc_destroy_all() to xbc_fini() include/linux/bootconfig.h | 6 +++- init/main.c | 17 ++++-------- lib/bootconfig.c | 60 +++++++++++++++++++++++++++++++++----------- tools/bootconfig/main.c | 9 ++++--- 4 files changed, 59 insertions(+), 33 deletions(-)