Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4478208ybx; Mon, 4 Nov 2019 14:06:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxoILaR0V7YyU4R4mxKVHCdwQOAe1uIzGnis/yhhn42RWTjuGLeiXUFHQelP1/uaDHbTg3S X-Received: by 2002:aa7:cc18:: with SMTP id q24mr31831827edt.150.1572905160711; Mon, 04 Nov 2019 14:06:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572905160; cv=none; d=google.com; s=arc-20160816; b=vYwYciXotSgMPmS8w4w9tU/ZeQHFA9RztISLxH72nHqs3b5680OumCYpTTqcxah2+o kBevxuBQ5AnmhhDV2RatrhNBeLOE3PKW3rnKWE+1AcLnat9aG4ov4qEBnxOwJdgnOqlu hrkgpcZKTtHqe5Yl/QcBA3nfzZaAD2F0MWcmoAubl1Pw00G7LRUkZSue76YfFyyXeZh+ jHRgVI6HBJPyBb7jaPgtC0vMrrrFoKBpS2M2LVgR91BxeruMawOXVppKHqJlYr1kTmfF RAe0TySGPZNqXV2gnxnK0J1GV4niaTS8DW78AIhSuH1cVykHu+6Sr8vFoTzKqMXbvb5c i57A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uViwGkaihia8QSfSODcopWpX8NgU/1VhcFcoOrA8uD4=; b=SfU71+kN+HCm8ET7fSBOMtFLqG7eVkQTOGVyIohFps00uo6nTwDx5JWxhEDZ96PIpY cDpY/YboN5eaf8wgdMBkqleQ2ArlJzBtHnENU5GaMBgzNQnLRMh2Sv6OQsNuuCLTPX6K 5VBh4xWHjmx/5/Z3g8rYG9gP+eosef2DfvcGY/XdIj8dGomlt6qiWCURwdbqDHCyvHxv lX64PFG6LM4Zy/bIkp5auQHrp2J/QAsJxOa4krOShxFlN0XZx5dcxKuKKSsJ5xU1UJGq kCXAp3M08+H7FD9J5hpkts+YVVduSimqe6Fl+DsotH8H5u7ZeI/Gh7iQfrzEnPgXhf6d Cczg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bq0OudHQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k39si8816871edb.99.2019.11.04.14.05.37; Mon, 04 Nov 2019 14:06:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bq0OudHQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389650AbfKDWEV (ORCPT + 99 others); Mon, 4 Nov 2019 17:04:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:34950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388315AbfKDWEU (ORCPT ); Mon, 4 Nov 2019 17:04:20 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0ACB9214D8; Mon, 4 Nov 2019 22:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572905059; bh=WD4dEYGfx+vDqZ++erXNFlqFoVPlAJ90CR+pwNc7X8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bq0OudHQdFVKq6/DEniIDhvHi+wO/E7ueumKxqi+OBp26gGS4YSE3GYuOk+j9+xYO ZFv4/L3TrF8y43hSdf1xEYHB9inRUfZzSFVkzeiXJwwND/I/7XQEA2wSx617re0jmY eDiPNF3ihKBcuUGtXRm2hmbyd/S4R7W3qgrVtfXI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King - ARM Linux admin , Adrian Hunter , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Will Deacon , Arnaldo Carvalho de Melo , Sasha Levin , Peter Zijlstra Subject: [PATCH 5.3 015/163] perf annotate: Fix the signedness of failure returns Date: Mon, 4 Nov 2019 22:43:25 +0100 Message-Id: <20191104212141.543471665@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212140.046021995@linuxfoundation.org> References: <20191104212140.046021995@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo [ Upstream commit 28f4417c3333940b242af03d90214f713bbef232 ] Callers of symbol__annotate() expect a errno value or some other extended error value range in symbol__strerror_disassemble() to convert to a proper error string, fix it when propagating a failure to find the arch specific annotation routines via arch__find(arch_name). Reported-by: Russell King - ARM Linux admin Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra , Cc: Will Deacon Link: https://lkml.kernel.org/n/tip-o0k6dw7cas0vvmjjvgsyvu1i@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/util/annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 6d9642c082e52..2dac51e9e4180 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -2069,7 +2069,7 @@ int symbol__annotate(struct symbol *sym, struct map *map, args.arch = arch = arch__find(arch_name); if (arch == NULL) - return -ENOTSUP; + return ENOTSUP; if (parch) *parch = arch; -- 2.20.1