Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp44157pxb; Tue, 7 Sep 2021 17:14:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzv3Wdf4AR4VLBRGnmtDp+S5pss8WfqPNgOeyuieWXCzOT4swMWoVK+ghr0YEHK85F9h0TK X-Received: by 2002:a6b:e318:: with SMTP id u24mr742652ioc.137.1631060081779; Tue, 07 Sep 2021 17:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631060081; cv=none; d=google.com; s=arc-20160816; b=0im92mRNBFnCt3BE/HFjHIoQMWvnKe9wzaol1G9mS7A7rK01Uzp9MnANKLeYj8ELGh o1jEsCqQqR42usJ4N9MMbt0opuxWFYTtMo/UWN8gT8jxwLciSlr+zTqQAtMCu6RhxoKb SHnvDhg5cqK4r2w7zvzCasKs+wHNzh4BOF87rR7zhVb3WYoenCLlvog7nLo5IbWqvhnC uEEhVst0p+x01oNsrfFL3BVsOfPNqhkFJvArYTWzcrx7/9aowcl9j7w0c+x+dmaMqpkZ Mbq21fuCMFt9l2ynuylNWrbwTmhzUTjCEIllELkh3FcUlRzyaGfxz3+O8YITFLwqcqif 24Qw== 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=j7dib85pmKvNuYYDSELawnXh+KJq4mwYSMau3vU7Ds4=; b=ELBqB7EuWslC/mt+SN1BC8kL9LtDLxFZR5+IiWfi5m/7XdYv02cia5aNwyw9TY4vj+ o0Ew80bqzK0UMMy/i5gxC8F/Sb2ESDiVUNyj5oJVMoHjv/Ej4mSVH1FXoD9pc/wh0B3N ZtnALUcW/i5dH036h/epcvPfj0LYOYXpZzW4GdJzCpb8KwmR5AT5U437ZXlyzyDmQDGW bpb/INPoN09EFPuUWslwRq9E8cYca3O27qlrm3JkPucC643j9zJyV7f6LaxsiZntt5s4 rA7lr76FJXJROBj7xU+ijM2FvDHwaOxBgJSxqxSRgt2TA/aDtIupDVnC2teNVCsrNaub R0ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ij2npBX3; 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 n16si482190jan.32.2021.09.07.17.14.28; Tue, 07 Sep 2021 17:14:41 -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=ij2npBX3; 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 S1344993AbhIHAO5 (ORCPT + 99 others); Tue, 7 Sep 2021 20:14:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:59384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233183AbhIHAOz (ORCPT ); Tue, 7 Sep 2021 20:14:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7264B61106; Wed, 8 Sep 2021 00:13:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631060028; bh=kWYt8IVn1IyabyzMQamj0G5Idrpz7ar/7WuS3fGAML0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ij2npBX3goct6c9jy4Bc/94fPhyQAXjmEQnKtKuE+7A0wOFCAlaBN0AIDo07ktc1V 8xP6Xv8fGg0MbCvyPCSvlXYrXdDgFf8/Avpg79dLRsssgaZNROJ4d7A3vujXpPqzPd Cg+wCcDKD+MYMmBYIpzZ0pyY5QdQ5mDo1QTzwZ20PUa3ETJsJMYMdSnyppynivbc6R Wioc4lJoRvb/0Vao0dtML/mE1dcpFaa8JV42OhwdcUfU9tc/Greq4vmXwCARqIi1K3 HD8Z0xoEiB8dFFphdXIKv8+JdS8vDrsvE048k8rx6gaY7xsyJwAe0WOkphsD1iPSnD h+KnYUva4CEpQ== Date: Wed, 8 Sep 2021 09:13:46 +0900 From: Masami Hiramatsu To: Punit Agrawal Cc: linux-kernel@vger.kernel.org, Steven Rostedt Subject: Re: [RESEND PATCH] tools/bootconfig: Fix a compilation issue with missing variable Message-Id: <20210908091346.65e6c4c58bc31676e942ccb2@kernel.org> In-Reply-To: <20210907230710.1189193-1-punitagrawal@gmail.com> References: <20210907230710.1189193-1-punitagrawal@gmail.com> 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 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 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