Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp651583pxb; Tue, 5 Apr 2022 17:21:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPUnXPiBg7PElGy97IvjzatDOWgS3s29XYrgQSOH6WZHk/D5SG2hdqUSfbnqAYBKoFARs+ X-Received: by 2002:a50:d6c9:0:b0:41a:68bf:ff26 with SMTP id l9-20020a50d6c9000000b0041a68bfff26mr6199106edj.102.1649204503265; Tue, 05 Apr 2022 17:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649204503; cv=none; d=google.com; s=arc-20160816; b=w2s1dtnrGttWtcVlOVdm38oHwTssVjCPmiwrzdG/EzBqgWAL2CTjLqDmK/uaOG8YcQ mV/46GPyGm7DHFcsGJpJxbleic/A3UyYoFIARwUQTEBFjPGED9v3OIpX/C7Y4fb+GUWk kQhtVNXnXeTUbhZTvyWbnlgo7AuIJaHpWtydzNKBByxaY06yAyNXuko7mBweF1enInME 3HRFEoY9mS0td39nJduUkD2bjkihz71/F2HlM/JLEnI7OjYJNv4+vckeibvAsBK5ux1K man4ABqwiYD1IjgQKBrQLT2rMUKrk2+XNLZQB9J/jQ0M3bxb+QDwKFpCGkRZFND3+dVu Cz6A== 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=6EWd73Fa0dqIUwWkdMxutc2W99QbwftqqT7/LJSAqGk=; b=MYO9QD6Z8Hda4goXbgYzGdmdTg5VNcefIDulFaIIOV1+DwTsrydr/+YkcV7sdU28Uo StvLNJc9iQEFV6aJFzuy0V0DcYvhzZIGZtJ9w7fAU2GyG6cZgv3PQoIecSN90v3Ua4LP Q+8YZA9DZ3KPeySY34IE2SxbPpDIlUF9MdTYMLnCO0WRmK7zDUvARLsgFkQ9cnThy2Z8 u9Baj4oT4sSms38tQFdPMU8kyzvrTz2BbGe+idDAqMAHtP7UTi8kbJ5R8NmodITmMomM FmMsp6YoHieEoziqmmAhM6v60L8XtO/kuW6MCdeG8dK0co6MbDR7UBThiwwi4Y9O7WLq xgdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dKr7jA30; 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 n4-20020a170906118400b006df76385ed6si9967730eja.886.2022.04.05.17.21.11; Tue, 05 Apr 2022 17:21:43 -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=dKr7jA30; 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 S1352238AbiDELGE (ORCPT + 99 others); Tue, 5 Apr 2022 07:06:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237571AbiDEImt (ORCPT ); Tue, 5 Apr 2022 04:42:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8735F15718; Tue, 5 Apr 2022 01:35:22 -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 F133F614E4; Tue, 5 Apr 2022 08:35:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BC2CC385A1; Tue, 5 Apr 2022 08:35:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649147721; bh=XB2ZAnqs10KWvSqh5mAX4FfDP5UtSANZ3tDNnXYKoYA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dKr7jA30pfOYXFmsos9mEy2tdb85+oTBIOQV9C7AUfZqyAcj+uqSyrOz4GwejjSDb vpsxHSL3Cf2bqR6iqf1bBhml2pqle4yml1lhl6aLSDHei5tK4hKm5Hle7824v/X0Zr q1Q9UzK0mwYwu/1AQzXYpmYm6QkKmInuTo6FeftQ= 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.16 0098/1017] riscv: Fix fill_callchain return value Date: Tue, 5 Apr 2022 09:16:51 +0200 Message-Id: <20220405070357.105802778@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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 @@ -73,7 +73,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,