Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp25739pxb; Tue, 2 Feb 2021 21:33:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0wZ+xrLUkxWYfQeTqBdOlOgys9bOgVS35uh02Lcc+F6KAyl7AWj8tv0mNgCfwQO5B7jsN X-Received: by 2002:a17:906:2f07:: with SMTP id v7mr1511830eji.343.1612330408521; Tue, 02 Feb 2021 21:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612330408; cv=none; d=google.com; s=arc-20160816; b=Fyvzwe5l4L48rTeQDpuE+BPgvYgG5Sxu15hwLzAzy/Trv0tUwIWy/pbjVaZ0ZWBGsI j3utbkzoitWo/bpoqxtcJruTsmGKhoA/RYE7XmBRLl9vt8m/Jz1yMlDvzzvClh8i80Xi 5pPdopLwf7R7nwSU3VBwoiOvepDmHOOr1dCQ7BJSJwBYOzTdfR2ybbiYyEIEj3aFiw1T HPxbbIBU+zUGQel96RO4z0ZwqmqetrsVBnRPs/aDQr08NHE15CGry/aqNGiWxf5hmpjP c9jHT3gQTVzNyoYVgAamMuG/zDd3lxGAIXfwTC8uTi6yIru1N8kTpssSoDNjft5cHqJh S+xw== 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=lyARsblgg0TU3WObe6294++oZNP+9g6l20ADdG7gBCU=; b=bLRhEncHjSRDkhf6Ys/ADgRiERh1JPZRtNClEa6qVRc0YBb8cCVgnfppWXIxKLihP5 VhFj9fy7zH/jCPJcOgSTGpSAQiTVlFbYm8nFv+U4C1mtXdj/ykfPzpU8bBqWVW9q0ESn ceVeGNbkiYnivbks/bHHqe+RbbcLycpT878D20BDvk9cAphV3d3TZb6Se7x+AEor/TJk LmZ7rkzh4W1NRmtpcuNXG9EhBXoduPaYfy9FBqIZWYLVXV1q5bn+RTV5P8H4B99vW3RY JRnO+tH3lPZ1H0v096BtJpSYJTpsVVFskeH+CrVkc5rjdrWFou/5aGV8HQc+aExYyIXI IycA== 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.33.03; Tue, 02 Feb 2021 21:33:28 -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 S229845AbhBCF2Q (ORCPT + 99 others); Wed, 3 Feb 2021 00:28:16 -0500 Received: from mail.loongson.cn ([114.242.206.163]:54836 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231270AbhBCF16 (ORCPT ); Wed, 3 Feb 2021 00:27:58 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxz_MwNBpgenUCAA--.3008S2; Wed, 03 Feb 2021 13:27:12 +0800 (CST) From: Tiezhu Yang To: James.Bottomley@HansenPartnership.com, Helge Deller Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] parisc: Replace test_ti_thread_flag() with test_tsk_thread_flag() Date: Wed, 3 Feb 2021 13:27:12 +0800 Message-Id: <1612330032-6034-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9Dxz_MwNBpgenUCAA--.3008S2 X-Coremail-Antispam: 1UD129KBjvdXoWruw1ftryUGrWxXr4xZry3XFb_yoWfKFcE93 WxXanrWrWfZr4fJrn8Wa93XF1Dt393ury5XrWvqwnrArykAr1UJayvvrnrZ34fur4DGF42 ka4kJryFkw1qkjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb7AYjsxI4VW3JwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IE w4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMc vjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY02Avz4vE14v_GrWl42xK82IY c2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s 026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF 0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0x vE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2 jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU8trcDUUUUU== 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/parisc/include/asm/compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/parisc/include/asm/compat.h b/arch/parisc/include/asm/compat.h index 8f33085..1a609d3 100644 --- a/arch/parisc/include/asm/compat.h +++ b/arch/parisc/include/asm/compat.h @@ -179,7 +179,7 @@ static __inline__ void __user *arch_compat_alloc_user_space(long len) static inline int __is_compat_task(struct task_struct *t) { - return test_ti_thread_flag(task_thread_info(t), TIF_32BIT); + return test_tsk_thread_flag(t, TIF_32BIT); } static inline int is_compat_task(void) -- 2.1.0