Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3088203rwb; Mon, 15 Aug 2022 17:50:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR6tJyBzpL74rIMlTDzM60CvU1VKGCWAMMMdfFz0eKcQeJ8xBzxOGsVTP7nTS7lOBGY5MNys X-Received: by 2002:a17:907:a420:b0:731:5809:9593 with SMTP id sg32-20020a170907a42000b0073158099593mr11316919ejc.213.1660611029596; Mon, 15 Aug 2022 17:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611029; cv=none; d=google.com; s=arc-20160816; b=iS6X3538C3GCLEJJQTDh+6KArkMTGcbWO59DLXRz5Pq4LBGbxojqo7nEUQwqzdQucH WDnzkyhmDd74v8kiZVAo8fnntCDY/UbmIULaatoGiGa8qLFcyC2/z/TrYmoXcEE8HQZc GdTXpYWL8e8wuwmdLzwo9JfkVVV+/Ep23PJpGpGYVpS3Zoyfct2PhazgmU8Z/An234UX u9Z9lprmAQHptyBOYlX+JxJA1OYi62c9EWKxd16Q/nsrqXbW8pQnNJxD7HLKnKrFaRib CORCgiJsS/9kmRNZJVMCZ43Q3qQBoWHwjGFAOpQQRz8angjXPHsx6NI5bJ7M6ibdgFLr vtgQ== 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=AVvdl9PBii6lYyIfXy1qgFmmcQvGu13F58VUB7tn9dg=; b=a7LkJJPfmUHU2VpV71aKMS5lJQ7+DDBisDn8S65I3AAWQDK2OpNYh8ntCsuQRt1/wD /2qEbSLc4lSeMjEyflJ4uvuXZXYKMxezRp3n7yLvmZ4sIq2ScGvyNO21JcULpImex6xX fz2+Z7kbDx0apmA0D6jRekTw1+f3PXCpt+gzKwfIdhhoIcwTnJUY51GxKBKN0cZ93O8N DTlwYwBZgw1Phklid6j4u3ajjAyVR6AhChMaSoNKW7PyVrQRT9Ru9wnR+gwSSGoruvEe RpYDzKguPEA47MsSWKTO2upinOqBA2Bo+1fnfnQp88ssRZ32HGUFX5vvOObIz/wilXo8 oDTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=v7z4eZio; 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 bo2-20020a0564020b2200b0043ec4510a05si8414211edb.587.2022.08.15.17.50.03; Mon, 15 Aug 2022 17:50: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=v7z4eZio; 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 S1344087AbiHOVLg (ORCPT + 99 others); Mon, 15 Aug 2022 17:11:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347695AbiHOVHP (ORCPT ); Mon, 15 Aug 2022 17:07:15 -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 834EDB3B39; Mon, 15 Aug 2022 12:15:50 -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 1448AB8110A; Mon, 15 Aug 2022 19:15:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66A73C433D6; Mon, 15 Aug 2022 19:15:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590947; bh=A7ewpQEt3rqc/dX6YH/ywzUaXlCgXOfEWwGpF3U/FuU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v7z4eZioZgtzuXW8emcKlLeMR6hjl8mxWUUphBuFk2ZHw4nInWtUdoKILlh8lu2mi EElvqwrhj2jAbyG/hvMCiw6Pspw8tfX9YtII1BgWUP01x8JL+q/Wl3FaKKz0msl6lP fQQvR2yaIjW59nlLgZ/vKbCyUC4Plmnl/6mv+grw= 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.18 0422/1095] libbpf, riscv: Use a0 for RC register Date: Mon, 15 Aug 2022 19:57:01 +0200 Message-Id: <20220815180447.173186472@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 e3a8c947e89f..479f514f7411 100644 --- a/tools/lib/bpf/bpf_tracing.h +++ b/tools/lib/bpf/bpf_tracing.h @@ -227,7 +227,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