Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp926045imj; Sat, 9 Feb 2019 10:58:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IZlIUP8CRmeNTJJIfbij0BPODwgn4wM1BAOaPzVOc6ebpjuU/mz+K6fmZhnJTlVAu/c+jOO X-Received: by 2002:a17:902:166:: with SMTP id 93mr29674493plb.20.1549738687574; Sat, 09 Feb 2019 10:58:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549738687; cv=none; d=google.com; s=arc-20160816; b=EcGNDTiVm0pU+daiTyLfwypNsLt9Z70yJwLt8gm5nrF9VtuUqh5LYJzsnYHvN+2QAe jp0n8NRHdxIeCUPhSfT4Sc7YOZjsyHOM+8/yoMX1TCEyYkVkpmfjlNfRwl6LltcvnEEn OW1lnwA1tPa1JdwOnWJaBEqVwc9GLCZ+aitWmqMD8stQj7lIBE5VJVStWfy6a1F+VSGB SJxWVz7EO7kr5cfKZ9g69N0ZkJR2inTVVKn386vFpxBaooY7f4TRnn583TOtKSqIYo3e auCr+8q5SSYCqPAyJHFuQ186JmC/KjJXzaBqvt+JPtjZdNWSQHB//2NtZ8NvOug1is73 BO3w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JO1lxz0Fhb4zsX/8FfmtcQ94XE2pdaM6XJLGbewDuNg=; b=jvnTQICq5JuGJ3zENLQ2kgj4qD8P0rqz6txw6wtEoRJh3XC6SAJWvrQbbaSePAYsZt dTk8Sr/52HQdNCxTfODshrF/V3LVoufdXwnOc80Te/QKr2mxwOHMylvfey0GFsDzQK6z H5xjgDocORj9XWu+yetRADQn6e2BEsyWGae45PE3WnG0if3ZK810NIhbBSf8rORmqrC2 H/b44RMP8nFHBRjEtfbBlR1kX5bA0Ei3zn8Budwr6nwNMIxHkljlVaikpvXnTT8twhwG oDMze3z1EbgX2v4vpGGLRKJYznuIhPQ2Y6ssx2nhc/I4Fyme9LqieRV4hlz8yuJ9DAdP Affw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IsbpmOJO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 38si5697977pgx.460.2019.02.09.10.57.52; Sat, 09 Feb 2019 10:58:07 -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=IsbpmOJO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727399AbfBISrs (ORCPT + 99 others); Sat, 9 Feb 2019 13:47:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:60334 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727300AbfBISro (ORCPT ); Sat, 9 Feb 2019 13:47:44 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8CEC121919; Sat, 9 Feb 2019 18:47:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549738064; bh=Nj3hLQTvNJdWPBY8DVuGlS3oTYEnGWLTpHB3b4Kzh3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IsbpmOJO8vxtf3vEgDoRciY/wTpqqZuzzo3lQrBy7UsJKRYwHrwe8kIoV03QTaAg+ /4tX10NXZsHo91V9GXl4I1VchC/n00WbBJJ0YKHRgQrkd30jf0eGopM1HCK5SBQ5Jo NqVZmflrPP89teT1RToMA2gHDRoaypZ6kh+UQc2o= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: David Abdurachmanov , Palmer Dabbelt , Sasha Levin Subject: [PATCH AUTOSEL 4.20 08/42] riscv: fix trace_sys_exit hook Date: Sat, 9 Feb 2019 13:47:00 -0500 Message-Id: <20190209184734.125935-8-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190209184734.125935-1-sashal@kernel.org> References: <20190209184734.125935-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Abdurachmanov [ Upstream commit 775800b0f1d7303d4fd8ce0e0d9eca4ff2f338f2 ] Fix compilation error. Signed-off-by: David Abdurachmanov Signed-off-by: Palmer Dabbelt Signed-off-by: Sasha Levin --- arch/riscv/kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/ptrace.c b/arch/riscv/kernel/ptrace.c index 60f1e02eed36..6c898d540d9d 100644 --- a/arch/riscv/kernel/ptrace.c +++ b/arch/riscv/kernel/ptrace.c @@ -172,6 +172,6 @@ void do_syscall_trace_exit(struct pt_regs *regs) #ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) - trace_sys_exit(regs, regs->regs[0]); + trace_sys_exit(regs, regs_return_value(regs)); #endif } -- 2.19.1