Message ID | 20240125090016.536043-1-chentao@kylinos.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-38223-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp1511717dyi; Thu, 25 Jan 2024 01:10:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7vjmfNHahKMP2sgE40AsKudAjTHkDRWG8N11AafteA6NFbh4Z26b4bhrlhUSRg0pf6Td/ X-Received: by 2002:a17:90a:1285:b0:290:3e62:93ff with SMTP id g5-20020a17090a128500b002903e6293ffmr528932pja.88.1706173813326; Thu, 25 Jan 2024 01:10:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706173813; cv=pass; d=google.com; s=arc-20160816; b=jZtLTsVC5rB0SFTH/wkyGZJSi1NMqHKdXWvNXmrjIGDU17DG5+zAzTVu/tehtlHgTv JxTFos6NSV78f4swV9G6uMSiQGw4d31tL7auxGGD8DFEdzE1l+0useOTqLy0FCnzEQzW T4lLc1gO3QOvza3P9jyeL3/tsOYcGfSKzRWds9ZTbZVPr7VSzsMQv+UaFD3fRin0bO4E uNUDsUaNSc8b1FLYG6sfpLxz54mwK0zFTM4YPsEnXkLuZ/cuJXUVSnCf2THNoa6ShpGl qj3lqBL1b+C9G8qBa7dY9S2UJWLR25/4zor91iN8rspR8QBTv6M773CI8Boxq1UEWgqP TXcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=NRYi4lpe/hkCmwMY1CaJODf/sBHT1XzAGxNyPCLtH9k=; fh=CtYQMef6yt5FhsCvuGr8QoYr+1xE8Wv13+547FJxtY0=; b=BaeGZgaXB+FsLILZe36AAGPfqFR2JAHCIs9nqgnKGtx5troKJt/mQZjbPgK6/ikqPk MzfZgzQ67FadqPPwfGY8j7YbTclPaT2fHh2Vino5hKhHlX8R3FwirWZLfLXPwDnWy2TV SOYukkCd/aahwn1aFDaz4g2CNWUqFvhvG+pRuF9K9ToN3DBHdO/FUTDTgPlL8uSbC9Dc mPLAHgTQPNF0THn6rq7kVtf7aUmpqg2N6T6ulXfX/L/J/Uzi7f01Q7dRXbNgugwFW6J3 YJVV2U6UR+mJoXyJmKEWPmOOb1dpMWDUxBUE+1Hpu/T8GANykGyap6cPgkgTr63x5POQ s8mA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-38223-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38223-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gq24-20020a17090b105800b0029045145b93si1000301pjb.40.2024.01.25.01.10.13 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 01:10:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38223-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-38223-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38223-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A7F5B290EFB for <ouuuleilei@gmail.com>; Thu, 25 Jan 2024 09:06:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90A131BF3C; Thu, 25 Jan 2024 09:00:32 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A00EB1BF24 for <linux-kernel@vger.kernel.org>; Thu, 25 Jan 2024 09:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706173231; cv=none; b=b0Y5Zq9JIt8c0fxKRId2kUr2rk7JulQvzuu4j5czoIdQjJlTKBWlcbVEPT4/6l/qlUCGiFTBbRlVfJv5036TUDVgY4oAgUOqrUIREJgjq+m2NBEpF3S47GhbkWPZvjfLQkoi6XIaJInVXsJJcT/GHhAMRkJ8HBOLpStMv4wdb6w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706173231; c=relaxed/simple; bh=yFIcOvnlYTCrUO5xbKup55uq7NaX8OnUUTiF+MaKEvA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=TSq5h0cAQz77zkv8i++wm6M5WFh2kSduIqEvsToZyXT7s5FvDZUnO1EZBUEDtWhJ04YR2HUW/mr4Mdrdkjm2k/JFwWiOxWtosG/5QeYMfdW+Oj9SOmPpZtkb7HrPYDUAf+PNFJm9xtgqw05yyb4GusycgJNPX3FJzeYBm2gh2nA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 6cebea452a1842fabfae3d893bc41698-20240125 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:17b24cbb-1cba-4b9a-9edc-8b194eb99ba0,IP:10, URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:-10 X-CID-INFO: VERSION:1.1.35,REQID:17b24cbb-1cba-4b9a-9edc-8b194eb99ba0,IP:10,UR L:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-10 X-CID-META: VersionHash:5d391d7,CLOUDID:f888a58e-e2c0-40b0-a8fe-7c7e47299109,B ulkID:240125170020J0U1LXW0,BulkQuantity:0,Recheck:0,SF:66|38|24|17|19|44|1 02,TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,CO L:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: 6cebea452a1842fabfae3d893bc41698-20240125 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from <chentao@kylinos.cn>) (Generic MTA) with ESMTP id 659315200; Thu, 25 Jan 2024 17:00:19 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id 08A03E000EB9; Thu, 25 Jan 2024 17:00:19 +0800 (CST) X-ns-mid: postfix-65B22322-586871580 Received: from kernel.. (unknown [172.20.15.234]) by mail.kylinos.cn (NSMail) with ESMTPA id 50E73E000EB9; Thu, 25 Jan 2024 17:00:18 +0800 (CST) From: Kunwu Chan <chentao@kylinos.cn> To: oleg@redhat.com, linux@armlinux.org.uk Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunwu Chan <chentao@kylinos.cn> Subject: [PATCH] ARM: ptrace: Code cleanup Date: Thu, 25 Jan 2024 17:00:16 +0800 Message-Id: <20240125090016.536043-1-chentao@kylinos.cn> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789052912582867695 X-GMAIL-MSGID: 1789052912582867695 |
Series |
ARM: ptrace: Code cleanup
|
|
Commit Message
Kunwu Chan
Jan. 25, 2024, 9 a.m. UTC
This part was commented in about 19 years before.
If there are no plans to enable this part code in the future,
we can remove this dead code.
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
---
arch/arm/kernel/ptrace.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c index c421a899fc84..71c0b2233f56 100644 --- a/arch/arm/kernel/ptrace.c +++ b/arch/arm/kernel/ptrace.c @@ -37,13 +37,6 @@ * in exit.c or in signal.c. */ -#if 0 -/* - * Breakpoint SWI instruction: SWI &9F0001 - */ -#define BREAKINST_ARM 0xef9f0001 -#define BREAKINST_THUMB 0xdf00 /* fill this in later */ -#else /* * New breakpoints - use an undefined instruction. The ARM architecture * reference manual guarantees that the following instruction space @@ -54,7 +47,6 @@ */ #define BREAKINST_ARM 0xe7f001f0 #define BREAKINST_THUMB 0xde01 -#endif struct pt_regs_offset { const char *name;