Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp737235pxb; Tue, 14 Sep 2021 07:42:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw224M1wzilQG7h5/twAJMVsI5f7ydiLycYXKQ2svW21kQBm4f9hXbJngfyckyC0s6nGgVV X-Received: by 2002:a17:906:b08e:: with SMTP id x14mr19388481ejy.40.1631630578925; Tue, 14 Sep 2021 07:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631630578; cv=none; d=google.com; s=arc-20160816; b=HyuwyGpxAurkubPbN2B3jU4FOLNWWwruGyEDFmG7zrexuue/TA3Sx2iv3XlCXt1iYc LYJevsj+z/LkF5zi8+mHl7FOMXGv6Z3Quamt82669Gi9VcSCC+Z6AN1waOev2UNxzWq+ ZZOlKqTmUmxBEKIsx5RWTnBgx/3UxTKAMs/Lb9zJNe3OCqAP6Mm+jcnAJlQGbYFPD9Jj M/Q/RTwfy34WYUjqssFqxxxaxCK6xembq9cAXRAiaPkuVe6n3sC9KeMiuNWfPsHUqOJA yIBEYBukOvEFNKeBt5kK4VTLsQoFWBm0u/0ZZ/NCSTKnWNY5gAcGkrWAwblTzJ98w36b umLQ== 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=VzmXG4QkDfSvX9sLc0o88AACmhadEMMenuee9dA+7Jo=; b=MJGyZcvyvfxZE/KTirDc4uJPzn/A7Vlz7gJ79FLVBi4PU7snwXVWpzBPs6ponr8yX4 pRL/02Pu0xQGEJ9N+F/JiMnWQOmtjICHpgt/DTGS1A3u21N5W4ONYUzF0KsDaRcBz7ew UKorUGkf5AfUBSB60K1tCtPYlSJJYSekOYND+KvvgUFSVXvxcL3STpUXMVuOoNuLnCnz Rb201Y8ZC4Y8TH/38//mVApnt+LDDAoTWi6he2PIoG5sjP2f0wQ13uW7XTVj0mFVK4+5 IlxYQM0vNS8Z2TfWDy+qBLy+qFTcOdlcvdimhF7S/7CyaLiQypgTOMsdBAxNsGdLDy/7 BGnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DpnQYub5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jy12si11582855ejc.167.2021.09.14.07.42.34; Tue, 14 Sep 2021 07:42:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DpnQYub5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234953AbhINOlN (ORCPT + 99 others); Tue, 14 Sep 2021 10:41:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:34168 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234634AbhINOk2 (ORCPT ); Tue, 14 Sep 2021 10:40:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C888E60698; Tue, 14 Sep 2021 14:39:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631630351; bh=Ts/h7mGNCMrQe1saq26gi6wFqSuBUa6bKhvGbOtlAa0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DpnQYub5dNKDYUSyo6O3HaHYuLKiLqspd0eSbO1C3vrjn8ox9Lz1q988hNxNy2w9H 72ZmFw1Kqc1ccBkBW01idQLUEQ+XEx2z7AjBE4WKEyGIbk6RGz3CSWXlTTFURdiNGF lBoAKgvom6iP6iuIdPQwezqPcbgJLDbdHI+b8QHI6/RiwDfaaSKBnXnTU/IpoFYDxS tvBwvESfvuFP6sn1JJ4vxEF3l3Exyv8QXfC7g9tYldtGbuYKgi6+knlgMdzckd69tP qNlJW9ceBxSuNnGO0ZTj3y25rENNy8pBwjl0joQ22oAZWFaZRcC7HFAwACViuGWLMO 3JWIm/3eVprjw== From: Masami Hiramatsu To: Steven Rostedt , Josh Poimboeuf , Ingo Molnar Cc: X86 ML , Masami Hiramatsu , Daniel Xu , linux-kernel@vger.kernel.org, bpf@vger.kernel.org, kuba@kernel.org, mingo@redhat.com, ast@kernel.org, Thomas Gleixner , Borislav Petkov , Peter Zijlstra , kernel-team@fb.com, yhs@fb.com, linux-ia64@vger.kernel.org, Abhishek Sagar , Andrii Nakryiko , Paul McKenney Subject: [PATCH -tip v11 04/27] csky: ftrace: Drop duplicate implementation of arch_check_ftrace_location() Date: Tue, 14 Sep 2021 23:39:06 +0900 Message-Id: <163163034617.489837.7789033031868135258.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <163163030719.489837.2236069935502195491.stgit@devnote2> References: <163163030719.489837.2236069935502195491.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Punit Agrawal The csky specific arch_check_ftrace_location() shadows a weak implementation of the function in core code that offers the same functionality but with additional error checking. Drop the architecture specific function as a step towards further cleanup in core code. Signed-off-by: Punit Agrawal Acked-by: Guo Ren Acked-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- arch/csky/kernel/probes/ftrace.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/csky/kernel/probes/ftrace.c b/arch/csky/kernel/probes/ftrace.c index ef2bb9bd9605..b388228abbf2 100644 --- a/arch/csky/kernel/probes/ftrace.c +++ b/arch/csky/kernel/probes/ftrace.c @@ -2,13 +2,6 @@ #include -int arch_check_ftrace_location(struct kprobe *p) -{ - if (ftrace_location((unsigned long)p->addr)) - p->flags |= KPROBE_FLAG_FTRACE; - return 0; -} - /* Ftrace callback handler for kprobes -- called under preepmt disabled */ void kprobe_ftrace_handler(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *ops, struct ftrace_regs *fregs)