Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp707920pxb; Tue, 5 Apr 2022 19:41:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyD8d0sx1YvvS2afTSu98Poqh/OCHoBwyAoaQn5aR//TP1oicgvo/R0DNKeeNxvtGhowL0t X-Received: by 2002:a17:907:2cc4:b0:6df:a036:a025 with SMTP id hg4-20020a1709072cc400b006dfa036a025mr6750727ejc.554.1649212889876; Tue, 05 Apr 2022 19:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649212889; cv=none; d=google.com; s=arc-20160816; b=hoSw0nIIOHU4BC8Ka/6ywmurr9Ux7TYM+nfFeXLiwD8/SsQDpxfMO0W0K5C4NTCJw4 XHval8QgzFaX8YeSkWkWGOnIUl3PYlfalFbrlfWaeDuQOrUVWVRyRb2Ec6PiId0oS6RM QbA7WYA2+cBxiGl/IInJVEmEnttYbDjMuEX/CWiY3VzTIQuZ4iDkm4Kw9GWTHrT004Ln kwO/Ei+t2n7HUpmzp0/k+V83VUu7RMVzvJoezxblTpNz15Dlwn0vOvjd2hYEeJdCRSvA 0ZCw8JSNjWhVAThxpx6Kwe5rHO3ArrXhTKF0b/LbHd0epN+UnJTQrAwXZFzw9gc4KolO 4eyg== 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=0fzTYoJ1+vPjCYI607ryhudF+EW0qwJbRX9WC7aqxxI=; b=B5mdj8AN1zITXKX57ssVcw5khymNxWxyDfgWQ0j7Nm20yTSkuYHeFl7rynHZk4VvEW oKT1W7bQjBUm/JP2HmFF6wvW50rXAUu1j3kUkJK2JBR9OeU0AArvjEF9rMGgUFAwlCUJ Pmg+bwzrU+/vJpW5bkHFYaYWCKBh4DSVQj6HWfO+MWmSCHThXN/plnCVpbQ/C7eiGTRh szFrOul4m8ZsJ4kQ0ttXqjhWjE0TyHkbUnT/zmxHksee+FHwD4twi+sBFQyepM0upFLS LtI0jOXcAaQPeUGOEbW7Zv+b0K2XhQcN6MrwP66WawR3GxRM2yx81gdPoPinmZb84zTI j7dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0jBrrPMu; 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 n13-20020a05640205cd00b0041c80a88429si11590659edx.205.2022.04.05.19.41.00; Tue, 05 Apr 2022 19:41:29 -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=0jBrrPMu; 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 S235628AbiDEH74 (ORCPT + 99 others); Tue, 5 Apr 2022 03:59:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232648AbiDEHrD (ORCPT ); Tue, 5 Apr 2022 03:47:03 -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 AFB5595A39; Tue, 5 Apr 2022 00:42:43 -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 3BE5E616C1; Tue, 5 Apr 2022 07:42:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B666C340EE; Tue, 5 Apr 2022 07:42:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649144562; bh=W/UlrE/LxVzFDiUFigcR5GhQ2UCLa8WeFGVohwyOJnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0jBrrPMu6eTuF4idXlQYwlMcbe0X7NZpNVSvrrmmAYKkhb0VNdf1JSk4hL2aM4lf3 TM2cwa/bQYqceketcvtUbB/4mc1RakyvS3SLf/wTBhJEvyKwlghhAEgTwpj08hIYRd 8tz7CjUMkrk9fjDIwaB7OffM2cnPnyykGJ8gBRCk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nikita Shubin , Palmer Dabbelt Subject: [PATCH 5.17 0088/1126] riscv: Fix fill_callchain return value Date: Tue, 5 Apr 2022 09:13:55 +0200 Message-Id: <20220405070410.151739051@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 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: Nikita Shubin commit 2b2b574ac587ec5bd7716a356492a85ab8b0ce9f upstream. perf_callchain_store return 0 on success, -1 otherwise, fix fill_callchain to return correct bool value. Fixes: dbeb90b0c1eb ("riscv: Add perf callchain support") Signed-off-by: Nikita Shubin Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt Signed-off-by: Greg Kroah-Hartman --- arch/riscv/kernel/perf_callchain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/riscv/kernel/perf_callchain.c +++ b/arch/riscv/kernel/perf_callchain.c @@ -68,7 +68,7 @@ void perf_callchain_user(struct perf_cal static bool fill_callchain(void *entry, unsigned long pc) { - return perf_callchain_store(entry, pc); + return perf_callchain_store(entry, pc) == 0; } void perf_callchain_kernel(struct perf_callchain_entry_ctx *entry,