Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp904994pxx; Tue, 27 Oct 2020 03:36:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+xMyPPP5520MCtxPElrHoHbQ/oPOS1iWH1xTWHoNdnlUpgraL8bXRbtKWxOAcLqDmxN6s X-Received: by 2002:aa7:cac2:: with SMTP id l2mr1513039edt.141.1603794960389; Tue, 27 Oct 2020 03:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603794960; cv=none; d=google.com; s=arc-20160816; b=WDW7RR+tUpbmTGC6Wp7l918h42t1Mi3Gx8hp9Pd2IDY9Fn+SUIWmEhgBZkyXWNU8vr AWID6YMp6qgXK2p6RR5PSFE/hqgVaNd9pl8veOmZsPKJfOKwghty+LtEA8t0ee5nFh7u YqUYSJAaekwL3nhaoXR+thTVxnq8V9yqgyU5u4z37Ei3xw/Vt2f8Axfjc7Lt90RYNy5M lynjMPRuLymivhgfynVN+N+kQrfCJFjow5u9dOnNNqjFXErSmXItryhnjccidha3mLKm W61GPf8PJcC31PQs6scFQ/PQ7zB81hz6B8GM87HMVEjzFsp5TBV/xmVNqVmeuFurTwmW 9lvw== 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=okaDhWk7iUzmcOdMQ/hgI088EMgW1u2SeVLKGBZqGck=; b=JnJnu56XN68VqdiymM9Er1o5h67nCaq0zWxloq8L9ccmek5fU43B5nPZBml8UM8s8d A4Vfrz7Fogf4oRAVA9rRyt0Hu6+diYjbWZD44Ed24uxRtziH3OOU9Ktvt/hfAvKOHwvk AOHT5e8nMLpDQqfG8sj5DyhjIidgk4u3ayRlZxf+vTJ3btQNK5ClOrmhYo+pAcJIc5yv BthyuP41lzZZcMwoZC/JQUmu3eCGSQMvdYM7AaAzB5NqFnlOhk56c964DkqwTD5S3wSR hoB9n6azvRnIKKAPPmUCKHhCeWhK99pPaWCi5GOcDCOE57GFYRgvr0Gf6SdtKCeb2LVA fJzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aEO5s999; 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 c26si545918eds.166.2020.10.27.03.35.37; Tue, 27 Oct 2020 03:36:00 -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=default header.b=aEO5s999; 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 S2436877AbgJZX5t (ORCPT + 99 others); Mon, 26 Oct 2020 19:57:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:33662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410909AbgJZXzb (ORCPT ); Mon, 26 Oct 2020 19:55:31 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 37CAB221FA; Mon, 26 Oct 2020 23:55:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756530; bh=K+pXON+EpeZwcukcdCKp2fT/ruRvzTT1E/1PKb+EpGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aEO5s999gSymXSpAHcKUvFckPmXpn0/iyYSgTlGU3ERvVSIxAgCyuxGQtlHEWS/IW Ep3+n/8PlJZsv9bycMMiGUrD0u3C+hjx75JPOclPPdIV/6AMNOKhvxpg+QMjmiw6TB eccX1SIf5tAD4cq4J8fh+Dec3Zrra33HbDE/GOqE= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zejiang Tang , Steven Rostedt , Thomas Bogendoerfer , Sasha Levin , linux-mips@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 11/80] MIPS: ftrace: Remove redundant #ifdef CONFIG_DYNAMIC_FTRACE Date: Mon, 26 Oct 2020 19:54:07 -0400 Message-Id: <20201026235516.1025100-11-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026235516.1025100-1-sashal@kernel.org> References: <20201026235516.1025100-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zejiang Tang [ Upstream commit 39116103a7345927fa99644d08bc0cc9d45fea6f ] There exists redundant #ifdef CONFIG_DYNAMIC_FTRACE in ftrace.c, remove it. Signed-off-by: Zejiang Tang Reviewed-by: Steven Rostedt (VMware) Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/kernel/ftrace.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/mips/kernel/ftrace.c b/arch/mips/kernel/ftrace.c index 2625232bfe526..f57e68f40a348 100644 --- a/arch/mips/kernel/ftrace.c +++ b/arch/mips/kernel/ftrace.c @@ -37,10 +37,6 @@ void arch_ftrace_update_code(int command) ftrace_modify_all_code(command); } -#endif - -#ifdef CONFIG_DYNAMIC_FTRACE - #define JAL 0x0c000000 /* jump & link: ip --> ra, jump to target */ #define ADDR_MASK 0x03ffffff /* op_code|addr : 31...26|25 ....0 */ #define JUMP_RANGE_MASK ((1UL << 28) - 1) -- 2.25.1