Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp211384ybh; Mon, 20 Jul 2020 14:42:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH2ILuPGCszvYlrAYxN/zYtHqum/4a7htmtIAJT7YJBs6GpqffXRCCRm4bfUHkcahXpmnc X-Received: by 2002:a17:906:2b0e:: with SMTP id a14mr21929985ejg.459.1595281329082; Mon, 20 Jul 2020 14:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595281329; cv=none; d=google.com; s=arc-20160816; b=eYvRRDkowjAJuWAAw+kmOiv80WBXuQjFwMkDx1S1xVr/fKEob8Lltdnppp9mB8vUyS bR5bU5Hmi8GqxbCqpRIvhfdxaQzRnv/Ns6wqIqY0EZ5wB4WYTpaynPqJR+M5bJ9ofO28 uM2nXpoH1+f1KKTFEyDQlIcwFtyLRgDpowP5P4xE2uN0jld494YzvBebJgrq0T3/viwj LVc+kTywIxVMAqbSD4t8kIPU9xRujpAxJGQ9ljHjD1N4eo1b7uSbT/s6DFK7QuBPvz/S ts76fuYe+xjXM/edEQ3SnsTCmAwCaosPlZ+W7UfKJX1zBERQrcA87U2ARPtZeHUtnBhf 6I8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xgaBjD4tvBte0mSgUe7UtCocPG+2CKoPSBG2LNgLdEA=; b=Y8thEpbCMmte33jqXZU4wskQ1cv190XsFYb8mv/lDB6b9wO8LnOR7apcJLP1F0krho sYBn0wKx7BWpPmWwJLGUkGTYQWvU14WiKKsKY1P4geW9Pi8hOxr7MmEK8DpNouOeJC/o +QDMlw9M9zUvYA+Wlz13UWWZ+o5QG6LEZHC3pinXvnHCxf8zsgBYcSLKZx6nHjWyOg+j wRGXsEtg2GQojpub80Qt9CeJLPra2nKtncV0xYc8j3/ngtqPByTZFVqhDjTaOHYYN1hp sDe69kmAdW2mBSaSMY+T/HCbZNWxKdcm6J0qQMPpwJRp4HIX7mHJn7owKidFLiy7kl2K w/AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ImjiAMoO; 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 d10si10860020ejw.210.2020.07.20.14.41.44; Mon, 20 Jul 2020 14:42:09 -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=ImjiAMoO; 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 S1728553AbgGTVjo (ORCPT + 99 others); Mon, 20 Jul 2020 17:39:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:58384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728380AbgGTVjK (ORCPT ); Mon, 20 Jul 2020 17:39:10 -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 09CF022C9D; Mon, 20 Jul 2020 21:39:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595281150; bh=wRgAKJCJkV7Q4az1cAhz2iFJt5bHLBdVWRTvN1inipk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ImjiAMoONHUm+dctYuVrhYVxck6xBt/omRZ3lPKwBl4PQiwfEV4+3eX2aNtBb3Twf f3EgTfC3Iq/uUlOnGoF/wjJ7U65ls45uTinWc7oSubjcBUC3kc83qsyitkLE53aaMC XW23igRTT7+VC+RR98VaGBxBDxcp7skU7WoS1ijo= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Will Deacon , Sasha Levin , linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 16/19] arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP Date: Mon, 20 Jul 2020 17:38:47 -0400 Message-Id: <20200720213851.407715-16-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200720213851.407715-1-sashal@kernel.org> References: <20200720213851.407715-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Will Deacon [ Upstream commit 5afc78551bf5d53279036e0bf63314e35631d79f ] Rather than open-code test_tsk_thread_flag() at each callsite, simply replace the couple of offenders with calls to test_tsk_thread_flag() directly. Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/kernel/debug-monitors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c index 262925b98f421..85bf560f363bd 100644 --- a/arch/arm64/kernel/debug-monitors.c +++ b/arch/arm64/kernel/debug-monitors.c @@ -389,14 +389,14 @@ void user_rewind_single_step(struct task_struct *task) * If single step is active for this thread, then set SPSR.SS * to 1 to avoid returning to the active-pending state. */ - if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP)) + if (test_tsk_thread_flag(task, TIF_SINGLESTEP)) set_regs_spsr_ss(task_pt_regs(task)); } NOKPROBE_SYMBOL(user_rewind_single_step); void user_fastforward_single_step(struct task_struct *task) { - if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP)) + if (test_tsk_thread_flag(task, TIF_SINGLESTEP)) clear_regs_spsr_ss(task_pt_regs(task)); } -- 2.25.1