Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3091827rwb; Mon, 15 Aug 2022 17:55:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR7mqZe+AnK+7i7UNJpVO/Zt8L0KiUGp/kZ2jytsmyey6WYncspm+oKx9g57YKPT6mNsc75v X-Received: by 2002:a05:6402:14da:b0:441:cff1:1b88 with SMTP id f26-20020a05640214da00b00441cff11b88mr16700301edx.359.1660611349285; Mon, 15 Aug 2022 17:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611349; cv=none; d=google.com; s=arc-20160816; b=Lm9791npz/p1/DpJsjeBB1hGG0q21Meql1P/4fRj8nVS4QRQImmE9x+k/SYSkX+fqq pivrrmbcC1oG99iCi+SSXgue793Hx1GEfrRXBe4GrvmD2VYHKlINRC9otCi433DRvMOB 4Fpuq3oK4FDRkl78WiCBL/RahVWEFjl2Q5FDcb4lRujZljnX8ie5bwOVxQYlDu0Zu/JG kOB9HHhvVH534DllrR8xxaJfLczDKTXosLisIa8+9vL7Ec/qHAQ+nSi+hPD4V4b7aHZD eB1Puou+MjnixWtLJb63jKf/36lAy6ja60AsgE5tXWdxeWLGV7CNEb/pah3wK8Wh8qKY xOmg== 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=MFVFoMQMCq+byQdz0aoI4n4/wRkHOTBpEeM0cWeTqc8=; b=l74KHcmmlF5twbOlF31Vag0R5dp2kvFRjVi0qqeqaMtyG7W055EHZp/vsrxDOfkpgE ew+1CqyU57LIJ3R7m6sIvBPXy6Ru6Onvbo8UCck2KAmO1WuEeTAla8z0Zr6kRE9/GbPF iJ9uyiluOejtGLY7wfEQRB+DsbScKeh2ORS3MhCkrDuUqyScFS+NqHA3R8E8a5a3QUEi cOI/F5sLvKvYDOGyidGePXf4Fj+isHQmd2w+gqA3C90sfUkLKD8tzqnq4vw7yp62r9dI 9nAIUyTOEZqvF+1efbd2dWqrNrqQzkEaFdR34sd2zZUIz/ePoub9g1TjQ1i0OEHidNxY PylQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2b+b7RDM; 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 o11-20020aa7c50b000000b0043da70a82f8si8715120edq.117.2022.08.15.17.55.24; Mon, 15 Aug 2022 17:55:49 -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=2b+b7RDM; 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 S1347215AbiHPAer (ORCPT + 99 others); Mon, 15 Aug 2022 20:34:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354200AbiHPAbd (ORCPT ); Mon, 15 Aug 2022 20:31:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54DC01863C6; Mon, 15 Aug 2022 13:36:20 -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 41B07611FC; Mon, 15 Aug 2022 20:36:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EB30C433D6; Mon, 15 Aug 2022 20:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595778; bh=cfS4LzqGH/rZMcbVLuMFUkaIzMKrRGLQzVcvKPvDyjE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2b+b7RDM9+PwZa+62YK93lBL9cSB+/jADZHy49AXpIYA7yoZwq+cd8lOOnOaHsJ22 QBM4eI3VVf9r0uErivs8hdFYtJ0/mdeoVW7dI0F9d2eE30RPz3Ku5UIaDjcX2PU5Hk LylJUAEise6hcE5lRbhKnFCrmut06ujXgcqI9EZY= 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.19 0873/1157] of/fdt: declared return type does not match actual return type Date: Mon, 15 Aug 2022 20:03:49 +0200 Message-Id: <20220815180514.381841548@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 a8f5b6532165..520ed965bb7a 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -246,7 +246,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