Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2915077rwb; Mon, 15 Aug 2022 13:59:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR6z7tjkFta9D9+MxLjbhd0noTcvjjlKJXMgqXgF2QwFAL+nQneMJMftg7AMOsc7aGn8bRjd X-Received: by 2002:a17:902:d4ca:b0:16f:8311:54b0 with SMTP id o10-20020a170902d4ca00b0016f831154b0mr18939029plg.108.1660597187612; Mon, 15 Aug 2022 13:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597187; cv=none; d=google.com; s=arc-20160816; b=mcVoa14q4BZLm+9wmR1F8JTdFj9NxPymMW5Pi+op6yJEJ7Euxe9fI1crsrjkoCiBrO 1O1XuM1eGKqWHcLo4aG4yoQl+LtzAMPhQj63CnQv86tqwB0rYPBrjhxTCTCvNsfQKZ/n RbJqSSLI4kM7OcLoB1qmLWE94iBlxMSrTUB9W/TynnGD6/z+tRRQY/TGkrbG+/5gNvGp d9ZDif/r/z3XdZi3P0Eeo6tIweHh2jaIsyn2pP1d0EbnwmzwAQ/jhOjnxj7xtBeLvp6g CeVL8+cfjLxJKWvRlOloBcv6HZChAMOtXIottdClQCnlqxCMoZDyY9fM34jrKLuRVniV GTkg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bFQ1eDJCAh2CyfJqBeX+RCtlgNB6kMmdGBThDGIx1DI=; b=zup7my+HHGoAJxpezyCK0mFrscPeLKNbGltdG40wb3IUC/ar09+yVmFgZ+4rlVdCLX Buan3F2K2hPJiL75A5lCdFFjem8+cFYpe6711maHsdnZ0oOIZv5akx+rP3nAKDxQqNC3 B1B0sWAk5XfQ1b1L0E1pr9/aL/YggpsMlkSW3Q2nm9RgQi+B5ThRZTbfOqitqerK55yX X/vuMXid8KQc9xD1OhtjVYUimQogA845HZbFrjuu5IO9QlHlCuz8XlPhoEBUIwH4sVC5 S1jX+UqYISVhLjzEe+mMRWdmdAvs6mx+XXRBxZXQVSomzUNioIcPmmZCJItWP6n8EGAV uN6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yeRZiq+P; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a170902c3c500b0016dd2643111si10371899plj.311.2022.08.15.13.59.36; Mon, 15 Aug 2022 13:59:47 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=yeRZiq+P; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245545AbiHOT27 (ORCPT + 99 others); Mon, 15 Aug 2022 15:28:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245192AbiHOTZs (ORCPT ); Mon, 15 Aug 2022 15:25:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E0BB3E759; Mon, 15 Aug 2022 11:41:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F02D161029; Mon, 15 Aug 2022 18:41:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1483C433C1; Mon, 15 Aug 2022 18:41:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588874; bh=0kvt60j2xLMDGX4/p5w7TBRFw0hJQ5k87RL9avNFBVw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yeRZiq+P7OkMJb/snf+HdXWCrTMx0P2pHqoi43P4rV0fZKfo2/hHYnqvn6O8QByhc VoIo5HgskgkwvTGaZKsdWjREdRw8KM6ZtYFVTAuWpAiagXDn1q0toFiTklj+5WxSlR prc4PwlSM23tH0nB7A6a2vIXKDr/R4Z30g0nYxGQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xu Qiang , Rob Herring , Sasha Levin Subject: [PATCH 5.15 542/779] of/fdt: declared return type does not match actual return type Date: Mon, 15 Aug 2022 20:03:06 +0200 Message-Id: <20220815180400.484353850@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Xu Qiang [ Upstream commit 7913145afa51bbed9eaf8e5b4ee55fa9884a71e5 ] The commit 649cab56de8e (“of: properly check for error returned by fdt_get_name()”) changed the return value type from bool to int, but forgot to change the return value simultaneously. populate_node was only called in unflatten_dt_nodes, and returns with values greater than or equal to 0 were discarded without further processing. Considering that return 0 usually indicates success, return 0 instead of return true. Fixes: 649cab56de8e (“of: properly check for error returned by fdt_get_name()”) Signed-off-by: Xu Qiang Signed-off-by: Rob Herring Link: https://lore.kernel.org/r/20220801120506.11461-2-xuqiang36@huawei.com Signed-off-by: Sasha Levin --- drivers/of/fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 59a7a9ee58ef..d245628b15dd 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -245,7 +245,7 @@ static int populate_node(const void *blob, } *pnp = np; - return true; + return 0; } static void reverse_nodes(struct device_node *parent) -- 2.35.1