Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp66297pxb; Tue, 7 Sep 2021 17:54:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFj391eWsE+FliU0ahYoAppz+JDitnQ7Khv8GMwMdn0ZcVbfnmzcXaph6lVO4IFsV5NnNZ X-Received: by 2002:a05:6e02:1bac:: with SMTP id n12mr782279ili.151.1631062486628; Tue, 07 Sep 2021 17:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631062486; cv=none; d=google.com; s=arc-20160816; b=BwOJh0UQtd2ZpCqDZ3qlkz7YrgTXOc7cwiBtseOo6DnzPMdCYjC7ysRXViiPaf4wS1 3sUfUIvJN4xh1RCv+dz/9G5XXnmdfxJNggl86rJO5NmfEu6JZWzTPhC60gDSP3jiGvuK kNnakfTrUv9NSaPKCzYGtFYAAxpeNcCBeiegHE8xANeRaydmYPG9mNyFomAg11sD+hF+ tgHegRIrdb4GT5OR23G08lmVdG9xuu8LfZ2qpBLhAehipFGqgL29vjbVfn4XEyBCOg05 0weskSMS0e960T1l8WTF3N7JQ1uwWH34lSCzGnnM3VsuxIaePawpDvU4/AMK7ZqZLP+6 0lOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=M1/oUvGKXrPOBgVpgI1/o9H8k/Doz44y4WiospAn8Yo=; b=WvE0mGsZpa6hA6VhlDaEBxWgEVc2xhTVdLhy/xG4XZ+HKfrK5ZdZBUyZqLz2/T8ndq Tth/KlWOd6kaffrZhjs339jH6YCGNLeXV1WwjVJwSn+scTWEgMMPUPJZJWPV1jnYXEJy sIIMiqLJkFC1kpC+VrsJIckCV0OYAvk+TEbHRUHwKMAa4z32gBkYs6W6vizJXjWk/vho LstYotkl73VJQY5i2DXd9ExwShcqLTDw2y/eZAiDTUmETP8qN5qOjpYxuF1QnqmF1CX2 O48d/dwFbjEEMTMXDhOT/44RH7W7x40sNpZ7YueZBSQ6RvAoCI7E+R8VMjcRJwMLU60C ohxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fbsq7p+s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si602123ilq.52.2021.09.07.17.54.29; Tue, 07 Sep 2021 17:54:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fbsq7p+s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232947AbhIHAf0 (ORCPT + 99 others); Tue, 7 Sep 2021 20:35:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:47198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhIHAf0 (ORCPT ); Tue, 7 Sep 2021 20:35:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C7E9661130; Wed, 8 Sep 2021 00:34:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631061259; bh=gZCHoiyYvJOBDFgLE8Co+IeXpF52HOMnDjNNoPUEA48=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fbsq7p+sBQ3L9lIV6HWb/jYT/SlisewLFImb7YXg4R2ZKBjoyhpQOcq1Syknu/M+H daU9GL0776U3rzkQvcq0x8a/mi/hHxagKU/IYHd7KnLqaci5rLyP6oukUWA9TzIIek NK0b76mRxAZPAjvXSsHh0axj3LHeg/nKPT8jSg6GvV6PojKN1eoemghoV6aHSZbJnk EFff3A20AB1DFERqoQ9VbshVsidbvYHDxRe++x0G3xOYtFavlCfz2db3dNNU70hyyL HCG2fqi+X2O6waheLYbZlm3g13bVcKcL99AVm9AQkQhcAzPqMKMRLYvoaC69OCDt9A swk0eQUtWEFRQ== Date: Wed, 8 Sep 2021 09:34:17 +0900 From: Masami Hiramatsu To: Masami Hiramatsu Cc: Punit Agrawal , linux-kernel@vger.kernel.org, Steven Rostedt Subject: Re: [RESEND PATCH] tools/bootconfig: Fix a compilation issue with missing variable Message-Id: <20210908093417.6eb7244e6d5d7e8b75ab4850@kernel.org> In-Reply-To: <20210908091346.65e6c4c58bc31676e942ccb2@kernel.org> References: <20210907230710.1189193-1-punitagrawal@gmail.com> <20210908091346.65e6c4c58bc31676e942ccb2@kernel.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 Sep 2021 09:13:46 +0900 Masami Hiramatsu wrote: > Hi Punit, > > This has been fixed by Julio's patch and we are waiting for merge. > > https://lore.kernel.org/all/20210831033256.5973-1-jcfaracco@gmail.com/T/#u Sorry, I missed thank you message on my previous message. That's my bad point... Anyway thanks for the report! > > Thank you, > > On Wed, 8 Sep 2021 08:07:10 +0900 > Punit Agrawal wrote: > > > While looking to build bootconfig tool in order to debug a kernel boot > > time issue I noticed that tool fails to compile. The broken changes > > were introduced by commit e5efaeb8a8f5 ("bootconfig: Support mixing a > > value and subkeys under a key"). > > > > Fix the compile issue by introducing a "ret" variable to track the > > return value from xbc_node_compose_key(). > > > > Fixes: e5efaeb8a8f5 ("bootconfig: Support mixing a value and subkeys under a key") > > Signed-off-by: Punit Agrawal > > Cc: Masami Hiramatsu > > Cc: Steven Rostedt > > --- > > > > (Apologies for the resend. I fat-fingered the email address for lkml) > > > > Hi Masami, > > > > I am not sure what went wrong but the patch in the lore link[0] > > doesn't match the end result (bad merge?). You may want to recheck the > > other changes to make sure it all looks sane. > > > > Regards, > > Punit > > > > [0] https://lkml.kernel.org/r/162262194685.264090.7738574774030567419.stgit@devnote2 > > --- > > tools/bootconfig/main.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/tools/bootconfig/main.c b/tools/bootconfig/main.c > > index f45fa992e01d..fd67496a947f 100644 > > --- a/tools/bootconfig/main.c > > +++ b/tools/bootconfig/main.c > > @@ -111,9 +111,11 @@ static void xbc_show_list(void) > > char key[XBC_KEYLEN_MAX]; > > struct xbc_node *leaf; > > const char *val; > > + int ret; > > > > xbc_for_each_key_value(leaf, val) { > > - if (xbc_node_compose_key(leaf, key, XBC_KEYLEN_MAX) < 0) { > > + ret = xbc_node_compose_key(leaf, key, XBC_KEYLEN_MAX); > > + if (ret < 0) { > > fprintf(stderr, "Failed to compose key %d\n", ret); > > break; > > } > > -- > > 2.32.0 > > > > > -- > Masami Hiramatsu -- Masami Hiramatsu