Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1461883rwe; Thu, 1 Sep 2022 20:16:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR4WAsT44HNTy86P0jEMEZBZ0xfsnJqBgWL4HWrQOvvadWlaVCvcZDNYJkrdu0nrqmuLy5iB X-Received: by 2002:a05:6402:2786:b0:448:e15d:ab0e with SMTP id b6-20020a056402278600b00448e15dab0emr11744031ede.91.1662088592503; Thu, 01 Sep 2022 20:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662088592; cv=none; d=google.com; s=arc-20160816; b=LCHAyc6qvP18hvbKhZTpSNhgZp54uQIB0jgxNMDuNG/mdP1G79MC9Gu8fkALsQKu8H pZdQJimYfxhLtSNxYtq5OnQmSYAItZLvLSrBQRjQa/SGg79bXRkMV9Tc3XTxkLl4TyDb o3UnmzeFfFpMq3yi9MUzo2FdH3aRsIaK508r5SGklzp1VqaOIjzIFJ50tF2s+baBNyn1 6hhCHhi2EOjwHaOtecB4BFgBvRkN+5i7GgEZ1V9EMB7B1gdS3iUP2l4sZ7J60om/9bZU LxJt8jn8V6vCUhK8zJx62QDCIFdylMlZ6G3TTLwWP1Msq61mkTwG2do26QPrjcNfuOUb MLrw== 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 :message-id:date:subject:cc:to:from; bh=px73vNaCGfV3y5C1CuiNTnuDI/wReKk8wx3Q0Qh5vPQ=; b=l0cEWuNCgRgmQcdb8CDeSa1dsQ+PjZCkVOi7IFOynM6VGxq/kVUFkaCx1z32uJohXw 6YyWWO+CDFTpPgzMD0eqkOeMKkgFWlL3PFqrXpOqWK0xuJpl9Bdp3l+vINgSCGcGyApI 9P/XDBY4fme35lW2YpjM8ScVSFUe4Mog1d6XTddJ3FWnHjElbghpuQ4a7TcVccr+eAgB hUsIa9rBrKk0XrPWFyyxsdwsJOF1r/SN9g0Vf6Lx2gehUCAk5tSsPdsUBCOLsu2DHD7x AG2oth8MVHsabf9IGo/JFLzAP4mUmlwe4U2x0toL3SFu7IBJEmA0BwXqQdCha/Bv9TdG /VNA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc33-20020a1709078a2100b00718bf486a1csi921812ejc.782.2022.09.01.20.16.05; Thu, 01 Sep 2022 20:16:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233289AbiIBCaB (ORCPT + 99 others); Thu, 1 Sep 2022 22:30:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232291AbiIBC36 (ORCPT ); Thu, 1 Sep 2022 22:29:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C53A10FC2; Thu, 1 Sep 2022 19:29:53 -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 dfw.source.kernel.org (Postfix) with ESMTPS id E17D961E34; Fri, 2 Sep 2022 02:29:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD502C433D6; Fri, 2 Sep 2022 02:29:49 +0000 (UTC) From: Huacai Chen To: Arnd Bergmann , Huacai Chen Cc: loongarch@lists.linux.dev, linux-arch@vger.kernel.org, Xuefeng Li , Guo Ren , Xuerui Wang , Jiaxun Yang , linux-kernel@vger.kernel.org, Huacai Chen Subject: [PATCH] LoongArch: Adjust arch_do_signal_or_restart() to adapt generic entry Date: Fri, 2 Sep 2022 10:29:18 +0800 Message-Id: <20220902022918.169173-1-chenhuacai@loongson.cn> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 Commit 8ba62d37949e248c69 ("task_work: Call tracehook_notify_signal from get_signal on all architectures") adjust arch_do_signal_or_restart() for all architectures. LoongArch hasn't been upstream yet at that time and can be still built successfully without adjustment because this function has a weak version with the correct prototype. It is obviously that we should convert LoongArch to use new API, otherwise some signal handlings will be lost. Signed-off-by: Huacai Chen --- arch/loongarch/kernel/signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/loongarch/kernel/signal.c b/arch/loongarch/kernel/signal.c index 7f4889df4a17..8f5b7986374b 100644 --- a/arch/loongarch/kernel/signal.c +++ b/arch/loongarch/kernel/signal.c @@ -529,11 +529,11 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs) signal_setup_done(ret, ksig, 0); } -void arch_do_signal_or_restart(struct pt_regs *regs, bool has_signal) +void arch_do_signal_or_restart(struct pt_regs *regs) { struct ksignal ksig; - if (has_signal && get_signal(&ksig)) { + if (get_signal(&ksig)) { /* Whee! Actually deliver the signal. */ handle_signal(&ksig, regs); return; -- 2.31.1