Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10726610rwl; Mon, 2 Jan 2023 07:16:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXsDAfLzkyT3RVHeZwZ0CewIbIQeIwqsYg+Xx9+JIMEV7puDyZB++cVO/IrXEVnYgTzem00E X-Received: by 2002:a05:6a20:1455:b0:b2:636a:7bda with SMTP id a21-20020a056a20145500b000b2636a7bdamr60867682pzi.7.1672672567107; Mon, 02 Jan 2023 07:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672672567; cv=none; d=google.com; s=arc-20160816; b=AhnTqXnnMqH7rKUVuuD3BdMr7aqEi5dH9KpiSJpzFy7br6XGm6JZUba+56F+krgVSs WQfayqOXVa6WaKxl7MLk6W4TewcVp69VQcK4MR56NWbBOf1X6W1C/0uizJoCGQzyweQf 2BHgM7TeMivSZ3jn7ycFn703XRZW/FRSvAGEQ2W2IE4BEyPnNfmYdsc852wUNR32VcPQ 4QbUjQV9HF/9slVh1qhVghLRs3ydu7gjQsVao3Q6/dLf71LA2v2j83DlNdcXWKtiGlX3 YlMhPb7hFGufMqNzni1WbtVofJqe3qKnTEbBKLtWXck3Q3Cbkd3un0w+BV71oMvvs9+b KAsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=oldXDimbyQpQ7zpEgLfAQ9A9jkVkeyPyVeSx90WR90g=; b=uS8m5xsMXHqAC3VWsXZE7JR2YSA41HVXNYzYx1UhG/FnFqGQmkkqBREdAx0El2hJcx dQMhsy5sG4jkAi0zrnW4NKAYVAAlLLCTKoXPGeVEJX/iJ+1ZNWqKuMIoJtqYv0ZQC6Tj 8ycpyAraNVx3XHt8FMUzDzjujag3jAfHV4GkkzZaAUAgOc6egSNbK9G/xs4kdSxEAwv5 Bz1hd0/Az3gV0CZRLmfMnCJxwA4Xjo1imZVBYpDBiUaEKC30vR0vQN5ZyL8IDe7fV7H/ yo4AoYsibEhR0b/2nbZAl93IXT66rKHdarfXZD1+uyujot7Ss2FXFrd0v2NLDwWcNeZj yz3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AFap4DC2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n18-20020a170903111200b0019111dd056asi31733308plh.338.2023.01.02.07.15.58; Mon, 02 Jan 2023 07:16:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AFap4DC2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236188AbjABOg0 (ORCPT + 61 others); Mon, 2 Jan 2023 09:36:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236184AbjABOf7 (ORCPT ); Mon, 2 Jan 2023 09:35:59 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B1BC29A; Mon, 2 Jan 2023 06:35:58 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id h185so2560554oif.5; Mon, 02 Jan 2023 06:35:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=oldXDimbyQpQ7zpEgLfAQ9A9jkVkeyPyVeSx90WR90g=; b=AFap4DC2gK8aOZIgTD18L6fjbI1+0XDHkm9J6PTAyE4o7S59mu9inc4lkWxtnZKy1D CNl9KAp2hyPvEbQxgiBRoNKLqxZhP+F6rwP/BIUrNtLnR2T3N7mRjMbeTSB6boUsyQBl /pXdP0pM1yY97dR9YT+xRZa3nS7bWJsN4EN6f8QuTH4FCAFfquLALhf1NUi53/QKFzxs 2MtuIdZNsPKoCxMXt4OMbdPXjZSn/9F0McFdukOEvVZrQBcCQF6AUCu27IKdYPTE9KwQ 5N8RhfMPGykJ235lQVhg/zs633WCx80WjzYRPx/gEavvLUHuCNIRb932N47a84UP0Sq9 3oqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oldXDimbyQpQ7zpEgLfAQ9A9jkVkeyPyVeSx90WR90g=; b=KEb0yV0RBv3FMRq0YrSEpWpCwiimOS2sMQ61Q9vdrCEPFb0JiQKNmfawBNXh9GCtjk Lmln1frdRM9qXACP5XBPrZfkJrS5resd3c3FecgdyKRXuGk8NK29hsy8f4lm8tMjR1/N GYURELZmIorHsxMzzJ1MmSusGtRySbIxPQ8PoZe+yzG+x6/uyqcxV+O7mUXI7Rx9cEcU qrEf+qCTJORm+yKLi5hAffImgVwgaXnj0TjAiunI9mjZU02xLgBg2heBJvcllG5t9qhY 2KE+tA+FdnVFnDWDRuHsDZW0NMWoxS5pp9QSfxyKfaXqo+fR1/xA26RENMz396LyYZgW PK8w== X-Gm-Message-State: AFqh2ko8N4TUrq6zWD2eXywvtUWWjnM+xmy7XismslCV94Pbv7z+Mycm /d7RkmcJdwc3hxgDCn39UWqnYudiuQ8= X-Received: by 2002:a05:6808:2c9:b0:35e:b231:1a27 with SMTP id a9-20020a05680802c900b0035eb2311a27mr16695489oid.33.1672670157909; Mon, 02 Jan 2023 06:35:57 -0800 (PST) Received: from ?IPV6:2600:1700:2442:6db0:e082:9c8d:c88c:a11? ([2600:1700:2442:6db0:e082:9c8d:c88c:a11]) by smtp.gmail.com with ESMTPSA id r204-20020aca44d5000000b00354d9b9f6b4sm12015179oia.27.2023.01.02.06.35.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Jan 2023 06:35:57 -0800 (PST) Message-ID: Date: Mon, 2 Jan 2023 08:35:56 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] of: overlay: fix warning being reported as error in add_changeset_property Content-Language: en-US To: "Ankit 16. Kumar (Nokia)" , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <1671195782-23078-1-git-send-email-ankit.16.kumar@nokia.com> From: Frank Rowand In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/30/22 02:40, Ankit 16. Kumar (Nokia) wrote: > > The print causes false reporting of the issue which actually is a warning How did you select the commit in this Fixes tag? > Fixes: 2fe0e8769df9 ("of: overlay: check prevents multiple fragments touching same property") > > Signed-off-by: Ankit Kumar > --- > drivers/of/overlay.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index ed4e6c144a68..0da39b8461e7 100644 > --- a/drivers/of/overlay.c > +++ b/drivers/of/overlay.c > @@ -358,7 +358,7 @@ static int add_changeset_property(struct overlay_changeset *ovcs, > } > > if (!of_node_check_flag(target->np, OF_OVERLAY)) > - pr_err("WARNING: memory leak will occur if overlay removed, property: %pOF/%s\n", > + pr_warn("WARNING: memory leak will occur if overlay removed, > +property: %pOF/%s\n", > target->np, new_prop->name); > > if (ret) { > -- > 2.30.1 > NACK. This patch is incorrect. The reported memory leak is a bug, not a warning. I'll write up some information about why the memory leak occurs, then reply to this email with the additional info. -Frank