Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4404703pxv; Tue, 27 Jul 2021 06:39:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBYNvl6vA9Qat8+V+f79qGdZHCkJXw6DeUezfUqrfODCuHCh+AU3dvRYwk8BIdy8DwSOT+ X-Received: by 2002:a05:6402:6cb:: with SMTP id n11mr16339927edy.112.1627393156224; Tue, 27 Jul 2021 06:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627393156; cv=none; d=google.com; s=arc-20160816; b=NHwb2Fz3EB0ILYqlxJrdtJkVrSDQgtFZyTUZ7y5dgUg4PH5BXTtSjo1DCbb1SahuQH /bTgljwbTVFZ92V34b8JcCMK4xvfVHVeYPQ2SnS7IKEfYNsUKX12tOx6LoDfde7mfp3J dvO1UcyDSijnR6+ptuygxQAazGdagI7bB84D3Gm7paAs0XMOvMjZPq3ft1U8PYW0oex0 iNKvKg0fbVAacOir9FdvoBm+BqPCUZ798wXchZLLMqZ7J7qpOjAk9KXm9DieFP9o+Ib9 tICMAV4ZmMjYSawl4tF9Fc3OjdUb5YvALk4sjYvLf8l0Pf6THZBDW/T5zkrgiQGZj+Us d6rQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZxXx64wJh9J8hPn+gePi5qyiWEe29yS7cUbB8TFfcfQ=; b=030CEEzPOw0Te1zTTyVo/QQhM5T4aX4AilU03QYkqCbzP5D69ny/6wBBxlKqbic1tX mlPiRHMGq9AO+J2uM6EbLuVr8zJREUverWGvYwnChrrizRaRnw74GalhS5GcOtQGSwHU GetdhfPMW0D4mkHjm2smIqeh/Rjp8lkx0Rhk15sbKF2rEdMSUa0Dk7RXOjc4bzzxvpn7 KU7coQQsYEPj2SVU7HEY7ob77F6Gf9ObaOn9YsHeEEW6He9K38h66cKKz5DxZNOexvOo hoOdPCS/FSH1qRIZT5BAeiWDl5yukZLzJ+SdL9Flp0GH9Gb0q5jC7I/LGAchmdMYzJri HM8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KIp3kED2; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si2798044ejr.435.2021.07.27.06.38.50; Tue, 27 Jul 2021 06:39:16 -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=@gmail.com header.s=20161025 header.b=KIp3kED2; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236700AbhG0NfR (ORCPT + 99 others); Tue, 27 Jul 2021 09:35:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236684AbhG0NfN (ORCPT ); Tue, 27 Jul 2021 09:35:13 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82C94C061765; Tue, 27 Jul 2021 06:35:12 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id c11so15719886plg.11; Tue, 27 Jul 2021 06:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZxXx64wJh9J8hPn+gePi5qyiWEe29yS7cUbB8TFfcfQ=; b=KIp3kED2zcd3Q97ZIE9u4TsFWHZ8B+fo3nxr8vHqxBDPjhBRAvJt+sITxIicIWd7EO oLOAMoCZcU041JLG4C30aTY5OB5wLLPVbQu6T7fQlzI/fV47CI4UCZNa+B9NqAiqI8Hv CSIjKhniHZS69QyKPeRfqX9S3PQx9mdtAGalvQxfnXnVmF2bw7/R8QEGOHjHBtbeUnig 0+QMubVIBjylxsMt6SIQwIn/HHcHLbBuY0rfMlhvyZMVeEKr9mqFkkCU7vlekPDuAupE tyG1IwWtKNncpXp3sb7Zw1biVmEBmlkGOmLZpWvQfotnq8iL2sY3pcn+4XsI8mY+HOcy k1bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZxXx64wJh9J8hPn+gePi5qyiWEe29yS7cUbB8TFfcfQ=; b=Yka8vRL23cZGf7662/yO+0VYoIf2wXnWNMQZNPGIRe2LBnPOa3tOW5r8g0pLiImJUZ QgxDxNzvHXqK0K28GIW37TQp9TUNAz9NDxWBErnR+P+72zjHywT+UB7+wYYz+TVUZDAz 79nz65GlI9/UX+oKf6vfXsVzZJs8lpA4TuIfGLuAnYVBT5YXNSx28OVCRT1mnZbycL3s yPOnTjHmBXm/Qqk5d2etr/Oh+Bn6VnxCkqjFR9++mwNMHY5N33kGSD8kBdzjGQyg4ZA3 EDQgn/ogFUOuMttoMf1oO6ZrVvTfBOTB5YTB5ErPuJe56l4ipmYKAoBAHbXlPPDzlcaC QLfQ== X-Gm-Message-State: AOAM5313pG1kRjBQFbFZYUHBSYZM4kJ3dZ3r1b8ikdizaggNNRuxXtxm +mlWif+izYXiE1KEKeqm41Y= X-Received: by 2002:a17:90a:a418:: with SMTP id y24mr4382304pjp.116.1627392912006; Tue, 27 Jul 2021 06:35:12 -0700 (PDT) Received: from localhost (122x211x248x161.ap122.ftth.ucom.ne.jp. [122.211.248.161]) by smtp.gmail.com with ESMTPSA id q31sm2979743pjh.13.2021.07.27.06.35.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 06:35:11 -0700 (PDT) From: Punit Agrawal To: mhiramat@kernel.org, naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net Cc: Punit Agrawal , linux-kernel@vger.kernel.org, guoren@kernel.org, linux-csky@vger.kernel.org Subject: [PATCH v2 4/5] csky: ftrace: Drop duplicate implementation of arch_check_ftrace_location() Date: Tue, 27 Jul 2021 22:34:25 +0900 Message-Id: <20210727133426.2919710-5-punitagrawal@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210727133426.2919710-1-punitagrawal@gmail.com> References: <20210727133426.2919710-1-punitagrawal@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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) -- 2.30.2