Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11567944rwl; Tue, 3 Jan 2023 01:00:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXvflKKWvRpV7BhKuIohwDSnQ+U1xeJkwJILcR89FAG7gijLE6+qnjmQQWTdMvft9eRDY9bO X-Received: by 2002:a05:6402:1486:b0:482:ab74:6432 with SMTP id e6-20020a056402148600b00482ab746432mr30058670edv.20.1672736457519; Tue, 03 Jan 2023 01:00:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672736457; cv=none; d=google.com; s=arc-20160816; b=NxX19AiB1NbcCiih+CuYCCU1n+wP0ECnau38HjtUVZc/aIqo3Odx9OuI75S+KwoAO4 Hoiu+6wkBXuIrxzq7vP/kGdNHx1B7vto6Pc9tTrHa+OxckabGKvjH98LiCo5Eb0K1Y9u v7TRIn/0spsx3pTGkrA+zHz1brdVT4UH0XnjI1HRObbWyEQHxq1ABl7ElwFLMhm+ctSl ou4gklBy1oMjufqLzOcyPuUUZvuWk0pD51ywsA35YO14fCxw/q3hAcu0Cq/Cz4vuSCom G95U8Tvm8HR+LUVMNsohCJpUBl/rdv/yzuacG157WaaehaQieOLuqUcsRzBQrybVUjw3 A1fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=mKzv5D8YR/sjjzkRHkZD2S30P0ACt+Z+8BOUZ00Fh+0=; b=ZvuQGVYztHKUahnVZuAcZhTXMdt9qekpXl80oKuPOE8BBia3p+0aJKni2NIzwjYUS+ tGmMgufe4RsSJ2Rd0lpmVZRDxGgwJKzoY2BXUge/q0dRdJMxIIeyuwCk1VilAjl7tkhW QHjbBeeby+IQgWstkc26Peybkgcf/cOYki5r+Zx61/IsgdF+30T5IAs+qZdVVgqojTi3 mb/k1miqSEu2ZF/gGth9kKudbKDUqTAJR4ffYMxIkoTUyron0b0BtAFytEm6xOK5Mt6+ rnfluouXxFXqMcCsxZud3qv4uSlO8f+QT/q++4E5+dupN+K3Pu+2A54HYTeKnHpzJvmE hXOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sw0t0e+E; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc3-20020a056402204300b0046311e80ebcsi24528730edb.151.2023.01.03.01.00.43; Tue, 03 Jan 2023 01:00:57 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=sw0t0e+E; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236923AbjACI1U (ORCPT + 61 others); Tue, 3 Jan 2023 03:27:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbjACI1Q (ORCPT ); Tue, 3 Jan 2023 03:27:16 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCC7FDF90 for ; Tue, 3 Jan 2023 00:27:15 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 37317CE104A for ; Tue, 3 Jan 2023 08:27:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2705BC433D2; Tue, 3 Jan 2023 08:27:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672734432; bh=/7Ir17x6sUBFne3FTmiO4fvH6wQq9v5ncXOlJYzqp9E=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=sw0t0e+EuOz/wt6XBY5yMn2qzHsAeQsHZt8siJHdPdhAhemMd83atmAH402D7z2Qv /jdqA0tliYvhQK8eDsdpuf5iZQjYftZmwDEE0wVyomdaqOEgd9XZLAiLXcBYPc1Pup G1dZ3B08kC3STtdrPiA/qk5ATISJKIlTvxYLoC1SkAJK1UCytFzHyrpu0IePWmANVc ks/mz1C+caJednsN+c7wsGIMSQhOnTwkbwGCDa5Mpru+LC9Kxxw1eqEdnTZ2RUYC4E W8vhl2wKBRNZNCecXrpJ7L1kxHMOJ+aoIGQYv1EMXcb2r6RtNB7qbkEp17hCaZpMly YNP6rvjXsRlIA== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Chen Guokai , paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, rostedt@goodmis.org, mingo@redhat.com, sfr@canb.auug.org.au Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, liaochang1@huawei.com, Chen Guokai Subject: Re: [PATCH v5 3/9] riscv/kprobe: Prepare the skeleton to prepare optimized kprobe In-Reply-To: <20221224114315.850130-4-chenguokai17@mails.ucas.ac.cn> References: <20221224114315.850130-1-chenguokai17@mails.ucas.ac.cn> <20221224114315.850130-4-chenguokai17@mails.ucas.ac.cn> Date: Tue, 03 Jan 2023 09:27:09 +0100 Message-ID: <87358sxbtu.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain 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 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 Chen Guokai writes: > From: Liao Chang > diff --git a/arch/riscv/kernel/probes/opt.c b/arch/riscv/kernel/probes/opt.c > index 56c8a227c857..a4271e6033ba 100644 > --- a/arch/riscv/kernel/probes/opt.c > +++ b/arch/riscv/kernel/probes/opt.c > @@ -10,6 +10,54 @@ > > #include > #include > +#include > + > +static inline int in_auipc_jalr_range(long val) Leave "inline" out; Let the compiler decide.