Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3088646rwb; Mon, 15 Aug 2022 17:51:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR4La1iM8jveJKq0f8BpF0UCiAb27JiqlzWXQyrOOraMhvSq8vaYbirTgmrbtuzxC4jELdIA X-Received: by 2002:a05:6402:1f8c:b0:43e:8fab:76c with SMTP id c12-20020a0564021f8c00b0043e8fab076cmr16633867edc.126.1660611065942; Mon, 15 Aug 2022 17:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611065; cv=none; d=google.com; s=arc-20160816; b=nfwW+sYaypzBnxAN1A32/+mFswdQmextATbvymKhx7bdWahhxx77cRq1drqyj8LgLl z3f7XBlYCO3+LHu2lX30pKRUv9B+9duVRcVgE6kA1pHP3h5x8MCvqoHlWodgkIQm/w0q vtZE6sGFn4hs4mNdkEhHFYmsdu6M9SJ3jgT+o4yLmfO6DkZBT2Kx18q2eaCL8IuKN1+U RTCmR8vSLRKLvO+XAbebbG8YVGcQAL9MRke1w/qqyyAZ3az79NJME3PpSvHYMq/8i8Df d11oPKcqsheaxRkUJFA+yaj+cPcS+XdCLwMeUr3w7+7a7RkNv1LGGfDBLo5falFM9sxG kjtQ== 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=ZBYT9eWo1xgu89GCs7/Zu+RBFtdt82CcdCwv3HWh6Ww=; b=KAsu7v3fj6MTc88n034iZEWhulNhA9/nll2YiH11h6JOhwjOPctNkE4E1T31TIawdO qYmlV0WIJJL1rbyd3fxZUqaALcic+hzqFsuECM1gYiFQcjxB1ioXaEbb0/pp/WB8rdkJ FVa77xvzdD1XMJ3tWR0vpS64CdykM3S1WJTombfmONimbvPO+f2/HvAyHrCBaY2oC0BE MA+oHpASNDX3BAVru9lL33R3gHLOEaTBaA3t04aX5JM6P9G+MVE+P7bfBvspIVFIvr60 jRld7hyKBUkgJm7ZEbf2whC5OBb1vCoCkCt5ibCMIQP6IU2GCdJY3hxwKeligh7wZncB Fgfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qoCaXMUx; 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 f12-20020a50fe0c000000b0043dcd3625e4si8012747edt.328.2022.08.15.17.50.40; Mon, 15 Aug 2022 17:51:05 -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=qoCaXMUx; 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 S1354717AbiHOXts (ORCPT + 99 others); Mon, 15 Aug 2022 19:49:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354287AbiHOXoL (ORCPT ); Mon, 15 Aug 2022 19:44:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1547586C00; Mon, 15 Aug 2022 13:14:03 -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 ams.source.kernel.org (Postfix) with ESMTPS id 37824B80EA9; Mon, 15 Aug 2022 20:14:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80A53C433D6; Mon, 15 Aug 2022 20:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594441; bh=FiWPRepBVlrOCz8sETsw5mhm5qijt3xISAdoOf8lMx8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qoCaXMUxiL2QDD0u6ambXfpv2ppLFGduAE3RYKe/XZy7ZgUvQeztF1/Ym/XQvzYre lUcLbgj09Vf7F77JhL3vPFqPMXYK6R2C9pty4Ag3HaQWf9BGUYGGsLHG8aLRicXDj0 xJxqn4Um+UkBqYg/iwmZC1AyB+Ior/+r8mZgJ2TQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yixun Lan , Daniel Borkmann , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Amjad OULED-AMEUR , Sasha Levin Subject: [PATCH 5.19 0449/1157] libbpf, riscv: Use a0 for RC register Date: Mon, 15 Aug 2022 19:56:45 +0200 Message-Id: <20220815180457.555616682@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: Yixun Lan [ Upstream commit 935dc35c75318fa213d26808ad8bb130fb0b486e ] According to the RISC-V calling convention register usage here [0], a0 is used as return value register, so rename it to make it consistent with the spec. [0] section 18.2, table 18.2 https://riscv.org/wp-content/uploads/2015/01/riscv-calling.pdf Fixes: 589fed479ba1 ("riscv, libbpf: Add RISC-V (RV64) support to bpf_tracing.h") Signed-off-by: Yixun Lan Signed-off-by: Daniel Borkmann Acked-by: Björn Töpel Acked-by: Amjad OULED-AMEUR Link: https://lore.kernel.org/bpf/20220706140204.47926-1-dlan@gentoo.org Signed-off-by: Sasha Levin --- tools/lib/bpf/bpf_tracing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/bpf_tracing.h b/tools/lib/bpf/bpf_tracing.h index 01ce121c302d..11f9096407fc 100644 --- a/tools/lib/bpf/bpf_tracing.h +++ b/tools/lib/bpf/bpf_tracing.h @@ -233,7 +233,7 @@ struct pt_regs___arm64 { #define __PT_PARM5_REG a4 #define __PT_RET_REG ra #define __PT_FP_REG s0 -#define __PT_RC_REG a5 +#define __PT_RC_REG a0 #define __PT_SP_REG sp #define __PT_IP_REG pc /* riscv does not select ARCH_HAS_SYSCALL_WRAPPER. */ -- 2.35.1