Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp28113pxb; Tue, 2 Feb 2021 21:38:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfeLR8x3+d4XZkNxp4BEQD+CZp+i7XPl8focuDmpIlCEwBNlbPVRp9xTdOrNUXHQHyAceV X-Received: by 2002:a17:906:25db:: with SMTP id n27mr1539341ejb.552.1612330724484; Tue, 02 Feb 2021 21:38:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612330724; cv=none; d=google.com; s=arc-20160816; b=0tP9JF3tZpITllqUhKi7H2bKj16FVc7uYHU9N45vFU6+pqxaolAJnh7xfHGTduNgDF vOUIqHxNcWh/CwQqmFr8zVMspnft8rIi3p5J0oPxpdDo2gHRkZpW4O+Z4UV4oZGFbwVE iUdoxhP09smgkbjNAjojh8vfPXZ1hibaoVPGYra/O2vYtIGsw2bFGvUPTBRcb3Y+TpLS z6ztfrsmOsGQYPJ+jykdhH3C0e3mI50oc+7N7VxPickKXnDJDA6oUbKmwTyvytTTVbq3 07rnTlD30vJULwkgrC8t6Vr7YwFDsi17glFLCA6Djb1QJrhk9leVM01eVu6wLRzFuZlL 3mNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=ccyqDjFXnFrkJl4d7uhJxDN0ROIPLL5CRQ/pCqux0kI=; b=yb3rlCQfcr0JO0p9XbQ+nGad9DHzqLw/Gmtw8xqMDvshOzM6N8LAKC1y3b6lZKe0gk wEZp1Zu9WkHgA2E9wraL0tDAN130f8NAcrQQE2RT66tLMYYEKokoas5D2AOM5ZbZ90gx oycke0OWuEY2qD23iwLvYUp6hWK2YjfO1uJHprUr8WMck0R+xlnG9fu99zvRhjEmKs9j CqqvSqCHQGbfQgVge+bqhhcoW8i11qWbQrEt4Z3muj86fMRErjECgmGZLsc4GY+mA0a6 hqJpvdHEmalN1rl4pdVkg/OWIvZA+ppoRr4dO9060W3eTA1fLeVJs6K0jzv5gwHJOUS+ v2RA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s17si565845edw.158.2021.02.02.21.38.19; Tue, 02 Feb 2021 21:38:44 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbhBCFhV (ORCPT + 99 others); Wed, 3 Feb 2021 00:37:21 -0500 Received: from mail.loongson.cn ([114.242.206.163]:56716 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229650AbhBCFhU (ORCPT ); Wed, 3 Feb 2021 00:37:20 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dx3_NdNhpgHncCAA--.3007S2; Wed, 03 Feb 2021 13:36:29 +0800 (CST) From: Tiezhu Yang To: davem@davemloft.net Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] sparc: Replace test_ti_thread_flag() with test_tsk_thread_flag() Date: Wed, 3 Feb 2021 13:36:28 +0800 Message-Id: <1612330588-7026-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9Dx3_NdNhpgHncCAA--.3007S2 X-Coremail-Antispam: 1UD129KBjvdXoWruw1ftryUGrWxXr4xZry3XFb_yoWDJrb_uw 47G3Z3Gr4Syrnaqwn8Ww4fZF1jyw4Y9FWrZrWv9r90yFW8Kry5XFZ5Z3WDXF9xurWvkrnI va4DGFyqyw10kjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb28YjsxI4VW3JwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_JrI_JrylYx0Ex4A2jsIE14v26r1j6r4UMc vjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY02Avz4vE14v_GrWl42xK82IY c2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s 026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1Y6r17MIIYrxkI7VAKI48JMIIF 0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0x vE42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E 87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07jYoGQUUUUU= X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use test_tsk_thread_flag() directly instead of test_ti_thread_flag() to improve readability when the argument type is struct task_struct, it is similar with commit 5afc78551bf5 ("arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP"). Signed-off-by: Tiezhu Yang --- arch/sparc/kernel/process_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c index a023637..7649b14 100644 --- a/arch/sparc/kernel/process_32.c +++ b/arch/sparc/kernel/process_32.c @@ -183,7 +183,7 @@ void exit_thread(struct task_struct *tsk) #ifndef CONFIG_SMP if (last_task_used_math == tsk) { #else - if (test_ti_thread_flag(task_thread_info(tsk), TIF_USEDFPU)) { + if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) { #endif /* Keep process from leaving FPU in a bogon state. */ put_psr(get_psr() | PSR_EF); -- 2.1.0