Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4873610rwr; Sun, 23 Apr 2023 15:41:06 -0700 (PDT) X-Google-Smtp-Source: AKy350bH/i9+ZiKI9BEGVE6NjOM6tAKRCUBAdnXESNBLlhHy4AoCSVpYC6H5cZUrHsVV+qXkkF+L X-Received: by 2002:a05:6a00:14d2:b0:63b:7af1:47c9 with SMTP id w18-20020a056a0014d200b0063b7af147c9mr16313879pfu.13.1682289665923; Sun, 23 Apr 2023 15:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682289665; cv=none; d=google.com; s=arc-20160816; b=crNgzPly1/kUoAzYFq56qHSuWattPbpMEBbcV0IpNsnkHYsUwGPQW0TW73MksJaaZA ybwB20yXhq6g2GsPE+9UfIasG7fX5KPIq9QbPN+/43wzZXABG5S6WX1oejJ4LnA8UjhY /FNOzsRAFJWNJXRIikhsJ2RBU9ZgdVlA/0SDPUDyJ5PRHbLjvXmGp40CsMY7kXKs3S3k eUas6w7C4hgw9zwGrvGKGdounJOKCCf+tx7S98kdwXmwZ8jABK4zbRTrSr2HA7K1Fpjp /3SS6dPU6fm9b9DMBgSu8PL9Ih2RGN6pPbPjOLtCyd0kHPlStc+Epnr2ID+ExrpYlXSn +muA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=JOxROQal6cA2b9nVh8lVusUL2vjzy13mIsW+Lwv9jHs=; b=O7sey42C72b5WTZXbtMnXJltAR+/BSEAKE+Fin7BA4wM9toHX+LnUKL0rG17e0zIM+ wvuj0l7h1/k9ZrtqTFcrKySpJejhQCKKKLrCenPuD4xUCiuRP1mqRVMqhaiV35RRgnrX p3EHCx/VP6D5c02/o1VZiUqcuLiZgAsCZWbFotEjnoDcpwSVTYmf8XTiMU3ayC67LS7K 1fwo/S41NOoiCz/Tyvf5qlhAGrXwc+NORKsuxsfg4e8vJlJNtGgV1cKJvcUEexNLfZ8d hbpZNFCTqJY3JLaUK9Ww16g7gjYHoYKCOew6Gewk3IxMkWaOhzm8oy35V+IB9VHcnpMw lSvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=ZI+CBW2X; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a63e113000000b00521e4b138fcsi10044153pgh.148.2023.04.23.15.40.53; Sun, 23 Apr 2023 15:41: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=@google.com header.s=20221208 header.b=ZI+CBW2X; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229493AbjDWWcV (ORCPT + 99 others); Sun, 23 Apr 2023 18:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjDWWcT (ORCPT ); Sun, 23 Apr 2023 18:32:19 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12E111A4 for ; Sun, 23 Apr 2023 15:32:19 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id d2e1a72fcca58-63b64ada305so4699753b3a.0 for ; Sun, 23 Apr 2023 15:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682289138; x=1684881138; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=JOxROQal6cA2b9nVh8lVusUL2vjzy13mIsW+Lwv9jHs=; b=ZI+CBW2XxeN2IpKi/yqKtcV5tOtRGnHPi3UzIKorT7JYnj/I+50lqJj6RJvBPhth77 XP7iLxnGT3sh6X2DkB0DtRiBC5hbiGp0FeZBzXyGmU8vVMqk/8LvAGY/5o9cu9YNPTxz ajp5IK4mjalS57f0R6oNLx2D9jO0K9UWcbowcFTUleKSAugdsK8AX+WD1kA8H1ASJsJ2 savb90VOmo0RFjTjImLZFmZ5D1ksMVzfCfPhGGYAldx9mvtgpGBZ+CWEmUOesfb7puTb +B5wc0kLNGJZnMOjXX4Hli6vECUujnqGrq4cuZ2PQFnvL2nb3/MnBR7Ygn3/IE3MYsU2 RV8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682289138; x=1684881138; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JOxROQal6cA2b9nVh8lVusUL2vjzy13mIsW+Lwv9jHs=; b=bz7wd00KIQVH87o+oZdEd9nJLvHUjNTrtlgqQ7gXJVry6WSoNGajY4KmpQWQQ8cOkf eVyuvTxZUH0ARgcS/1rmF0fprig7Egf0ZqBoMZIl8mZlI8g4ISqUkJQiaTaUJZqsC8EO /pS2FSX3UnQrAtx68ZTbhj4/7EjN2k/6+1ObsnZ4XXWYngdUo8IBM6NLVz/GWy/J3Khz Qq5cNGzMC/EyDGMhl1DRwLet3v//CnlM2bYPqOQmhV2pnlT6ZFUSirUm7KKTWTXoepxu d5NyxXj7/qMUaL4+jZVTf6shFWZ6wpQn1cTRo8UNLymk1lu3AX9pE2YTn9B8Sb+mOE6s pjiw== X-Gm-Message-State: AAQBX9ebMU+ivBY0iZfiqoOJXYGqVVKAPrmdHvl1tKBqCAoiC4cgoTCC e+AT7ryrtMTuIJrnsNw+x9tYA9XAEtaL X-Received: from meowing-l.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:3eba]) (user=maskray job=sendgmr) by 2002:a05:6a00:1a53:b0:63d:46f0:2370 with SMTP id h19-20020a056a001a5300b0063d46f02370mr4945410pfv.6.1682289138662; Sun, 23 Apr 2023 15:32:18 -0700 (PDT) Date: Sun, 23 Apr 2023 22:32:10 +0000 Mime-Version: 1.0 Message-ID: <20230423223210.126948-1-maskray@google.com> Subject: [PATCH] riscv: replace deprecated scall with ecall From: Fangrui Song To: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Fangrui Song Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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 scall is a deprecated alias for ecall. ecall is used in several places, so there is no assembler compatibility concern. Signed-off-by: Fangrui Song --- arch/riscv/kernel/entry.S | 4 ++-- arch/riscv/kernel/vdso/rt_sigreturn.S | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/kernel/entry.S b/arch/riscv/kernel/entry.S index 99d38fdf8b18..2f51935612d1 100644 --- a/arch/riscv/kernel/entry.S +++ b/arch/riscv/kernel/entry.S @@ -191,7 +191,7 @@ handle_syscall: REG_S a0, PT_ORIG_A0(sp) /* * Advance SEPC to avoid executing the original - * scall instruction on sret + * ecall instruction on sret */ addi s2, s2, 0x4 REG_S s2, PT_EPC(sp) @@ -603,6 +603,6 @@ END(excp_vect_table) #ifndef CONFIG_MMU ENTRY(__user_rt_sigreturn) li a7, __NR_rt_sigreturn - scall + ecall END(__user_rt_sigreturn) #endif diff --git a/arch/riscv/kernel/vdso/rt_sigreturn.S b/arch/riscv/kernel/vdso/rt_sigreturn.S index 0573705eac76..10438c7c626a 100644 --- a/arch/riscv/kernel/vdso/rt_sigreturn.S +++ b/arch/riscv/kernel/vdso/rt_sigreturn.S @@ -11,6 +11,6 @@ ENTRY(__vdso_rt_sigreturn) .cfi_startproc .cfi_signal_frame li a7, __NR_rt_sigreturn - scall + ecall .cfi_endproc ENDPROC(__vdso_rt_sigreturn) -- 2.40.0.634.g4ca3ef3211-goog