From patchwork Sat Dec 25 04:54:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 12699145 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 032B5C433EF for ; Sat, 25 Dec 2021 04:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3VrF2gWl+TwtnxPWIfEto+1zqPCVDFXEa6pMH56Z7Gk=; b=atqeO8MWXZCkGG LyO/RkrHxziKxdqlJcJWE+JSsSd4spgo5VnwDc1yKJrXJFdRm6dkH+9XVC8CtG7CMnf/86nWZkO1J BqUxsqhRDsyxc4X7GyugcNMoF8P9m7kMtrZ2wTTgq5NEQVIvPrS6H/vL0QBpoFyV38zwYIgoJpLPQ h9Gr6vC2HRsnDRvLzrOdKX8SA+u8WM4eKDhUH6u3Z0o7/pKnEmU+U1ONUQvWOBa2r7VVQuJuvRWb/ klnCywcvXCrX33MQo2AnWbhl+oGihOyEXzKt8Zh7x+E65eBegCMHhsB/nQj1fkEMjPVLIrFp00Yy0 mYH1z/3P0TwtzKV4Yumw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z5L-00Ed5o-0y; Sat, 25 Dec 2021 04:55:11 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z57-00Ed1y-Lo; Sat, 25 Dec 2021 04:54:59 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0849460A6C; Sat, 25 Dec 2021 04:54:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7AA4C36AE5; Sat, 25 Dec 2021 04:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640408096; bh=jpwlZy74jLxlc+3k0tEIOwESvdOFLV/hmaQv6rvtTf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cTiTOAE/i8mYfhq5M2YknTISehplcyImD+5pTyLaWy6f88ZA8IjjqNZEc+cBp+OqA K7Ri9LpvxrcGeRL6lbMnDweGduUWtwQII/NjRuY0iHc/SUgkQWS1V9S1YkDqmCiAdh 69ylv6NGIaZb2sqKJrUzzJSiV3J5CfMiv8IbFdOozK+K8WdX0HaT1LUlDLt/c2Kssg yC+33xAKliaqHiqrrBzUhvQMeEXonINn4OnpDwUGmy9EtKYt3HO1JXBEMK/9FXHhzp zfLF4zR/4SS3LV8d868AhDEuqzieDZsjLRJVBvswgJ3Cq7+NuXFB7M/v/nS5ACxqvW ToIZu1sCn/CvQ== From: guoren@kernel.org To: guoren@kernel.org, will@kernel.org, tglx@linutronix.de, benh@kernel.crashing.org, arnd@arndb.de, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, christophe.leroy@csgroup.eu Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.or, linuxppc-dev@lists.ozlabs.org, inux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Guo Ren Subject: [PATCH V2 1/8] sched: Remove unused TASK_SIZE_OF Date: Sat, 25 Dec 2021 12:54:23 +0800 Message-Id: <20211225045430.2868608-2-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211225045430.2868608-1-guoren@kernel.org> References: <20211225045430.2868608-1-guoren@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211224_205457_935889_7BED49C6 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Guo Ren This macro isn't used in Linux, now. Delete in include/linux/sched.h and arch's include/asm. This would confuse people who are implementing the COMPAT feature for architecture. Here is the comment by Arnd: Looking through the git history, I see commit a06db751c321 ("pagemap: check permissions and capabilities at open time") removing the last user. Signed-off-by: Guo Ren Reviewed-by: Arnd Bergmann --- include/linux/sched.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 78c351e35fec..8e5689d06ac8 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2166,10 +2166,6 @@ static inline bool vcpu_is_preempted(int cpu) extern long sched_setaffinity(pid_t pid, const struct cpumask *new_mask); extern long sched_getaffinity(pid_t pid, struct cpumask *mask); -#ifndef TASK_SIZE_OF -#define TASK_SIZE_OF(tsk) TASK_SIZE -#endif - #ifdef CONFIG_SMP /* Returns effective CPU energy utilization, as seen by the scheduler */ unsigned long sched_cpu_util(int cpu, unsigned long max); From patchwork Sat Dec 25 04:54:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 12699163 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59D7EC433EF for ; Sat, 25 Dec 2021 04:57:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AT5GhBBgqxEG3i36n84MJfHX6nemlIvnxtELqWFnFp4=; b=uAD8k1azCPuBAn ISgjwmibxKkjXpoansINA/yoCcrvhSq3GXXzlv/aFjgyneNFZmCcFxhsrR/O35yojT19K35sH97tF NykFpOK15lmLRHeTrR+zIDsG3f8p4FFKoT7IP6QfQiuEG4OTbVep2WX52VWnRcnzThHIjjcdU0Z83 93QfKptUghiJ0F2FOL+mPeb1/fmedeO1mEkfIUqwXHxIaH1vlgnZ2bw5K+JfyuMEti4/wo5NZZbU6 4cK7F2PqL/0Q/caXJLhbsX5DUIp+zPAdYv92ibqNLUuQI2uR8t4++7IuNUG8Gp5QbUQiuAxahIgfl sg2W3ut/2qfn2NXwNG8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z5Y-00EdCu-Kj; Sat, 25 Dec 2021 04:55:24 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z5C-00Ed3J-6z; Sat, 25 Dec 2021 04:55:03 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B858160C72; Sat, 25 Dec 2021 04:55:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0F74C36AED; Sat, 25 Dec 2021 04:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640408101; bh=D7/U3HVHnvdLiesri1jE7OLilV2Wekoh0yj4lEBJWbA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=byrTRC+8fxp8jHbj0YHIBTJx13ra9eI4+1+wqqb2XatoanHFeEnUAB5CPEexvwuwC RTxw6e8ibZfN8wvqdtxRQUqStPIviNR1tukjX6HSyvfiLGP/AcWEmF9o6gQ1cNUlMO MhUE6Ti6oGVKLse3OXbpvmnFWsABcjQVMue3COD79wkSU2vX77zDHRWbFBdiRLROu+ JsbXlEXlUZPg82q/iMvMoN5Nw8lOaL5zFXNm4TEUS8KE+OSgZJX3403HFGX5C/d7WF BuopzUBs5cGJgVtZ8znSl2oVIZUcEZoIbWAwL6YU0MYms5CYlqeSGDbERbvQhYUEDP bln0VWBZohRhA== From: guoren@kernel.org To: guoren@kernel.org, will@kernel.org, tglx@linutronix.de, benh@kernel.crashing.org, arnd@arndb.de, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, christophe.leroy@csgroup.eu Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.or, linuxppc-dev@lists.ozlabs.org, inux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Guo Ren Subject: [PATCH V2 2/8] sched: x86: Remove unused TASK_SIZE_OF Date: Sat, 25 Dec 2021 12:54:24 +0800 Message-Id: <20211225045430.2868608-3-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211225045430.2868608-1-guoren@kernel.org> References: <20211225045430.2868608-1-guoren@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211224_205502_342630_854DB437 X-CRM114-Status: UNSURE ( 7.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Guo Ren This macro isn't used in Linux, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren Reviewed-by: Arnd Bergmann --- arch/x86/include/asm/page_64_types.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/include/asm/page_64_types.h b/arch/x86/include/asm/page_64_types.h index e9e2c3ba5923..6191cf417c31 100644 --- a/arch/x86/include/asm/page_64_types.h +++ b/arch/x86/include/asm/page_64_types.h @@ -74,8 +74,6 @@ IA32_PAGE_OFFSET : DEFAULT_MAP_WINDOW) #define TASK_SIZE (test_thread_flag(TIF_ADDR32) ? \ IA32_PAGE_OFFSET : TASK_SIZE_MAX) -#define TASK_SIZE_OF(child) ((test_tsk_thread_flag(child, TIF_ADDR32)) ? \ - IA32_PAGE_OFFSET : TASK_SIZE_MAX) #define STACK_TOP TASK_SIZE_LOW #define STACK_TOP_MAX TASK_SIZE_MAX From patchwork Sat Dec 25 04:54:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 12699146 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 57B8AC433FE for ; Sat, 25 Dec 2021 04:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hkPYY05nQ2q2BLjs+0pCZPMJvUL/y2UAtJZ9E8T57eA=; b=lwUlZJ2gQU5uB8 FHgFtZK1vObYxYBYDOI6wnoRiP7mv67Tw+ZPs+XLSAfdaIaR2UtgqggvegBtxub4ngZUgm9l3s9av YId+OTURlNSPJNh/fKFNEwu7dG51AvKUXjqfCeS8+vp7qdCUd7I7r5JVRZu0QbOl3rcFUEVSVkCAG BKve8b9oXX35eXMe9xYhiOq2/lBOLopCEc3FCGxZNxijW6lDQiUvl8qF4ncTSKCyCbGIx4XofZ+Lr uWk1CJxslQY8y8nMsukpayY3BnpQvTmVcvnP/DabVe0Ffe5S3J4iVvw+FD/F1YL2tUaEaB5ttrzNU uFkG/osMn0iAzFLKoFWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z5o-00EdK7-3l; Sat, 25 Dec 2021 04:55:40 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z5G-00Ed4S-UN; Sat, 25 Dec 2021 04:55:08 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 716B1609ED; Sat, 25 Dec 2021 04:55:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB97FC36B02; Sat, 25 Dec 2021 04:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640408105; bh=RZHxDhGeVX15oaLNc4kx+vq7jlXyQAqs6QHL/XY/HJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HBUzN/dAdq53By2AFjyJLl1rUToAPIE0DArdtg2/nQcxIbo2Jb3T2uQD9h6V/j4lD AO4KrkZ4eaF7bxV4pwuJO32Huq9luMfiaNEVYeguq1ne+OKSWWzZUNNCOT6cxHxrDx 4JDLSz2JRUouJ9fKJYqyJKJvEuA9MfTfc6Zvk8XyN084gA0wgj6BswXD2r1Em3nWPh yechGLYta7pErAUHHEbq2C0fTrmRGMUusAWTOSbZOMW9bHLi8RnXR4j/w+G46CaIX6 Dqv5PslHxbh88YCZyfjD1r6NBxa40/8zEDDYYj+vE0A0TeoQNT+g2bNBr7Pxe+Igwf sn/mteg33tFgw== From: guoren@kernel.org To: guoren@kernel.org, will@kernel.org, tglx@linutronix.de, benh@kernel.crashing.org, arnd@arndb.de, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, christophe.leroy@csgroup.eu Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.or, linuxppc-dev@lists.ozlabs.org, inux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Guo Ren Subject: [PATCH V2 3/8] sched: sparc: Remove unused TASK_SIZE_OF Date: Sat, 25 Dec 2021 12:54:25 +0800 Message-Id: <20211225045430.2868608-4-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211225045430.2868608-1-guoren@kernel.org> References: <20211225045430.2868608-1-guoren@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211224_205507_114063_78167FE8 X-CRM114-Status: UNSURE ( 7.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Guo Ren This macro isn't used in Linux, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren Reviewed-by: Arnd Bergmann --- arch/sparc/include/asm/processor_64.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/sparc/include/asm/processor_64.h b/arch/sparc/include/asm/processor_64.h index ae851e8fce4c..628349fc4cdd 100644 --- a/arch/sparc/include/asm/processor_64.h +++ b/arch/sparc/include/asm/processor_64.h @@ -27,9 +27,6 @@ #define VPTE_SIZE (1 << (VA_BITS - PAGE_SHIFT + 3)) #endif -#define TASK_SIZE_OF(tsk) \ - (test_tsk_thread_flag(tsk,TIF_32BIT) ? \ - (1UL << 32UL) : ((unsigned long)-VPTE_SIZE)) #define TASK_SIZE \ (test_thread_flag(TIF_32BIT) ? \ (1UL << 32UL) : ((unsigned long)-VPTE_SIZE)) From patchwork Sat Dec 25 04:54:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 12699164 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2AB09C433EF for ; Sat, 25 Dec 2021 04:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3AoWDqs+yMX1OBjCARgvVMVckKQU5jGnT6ZhMTQ1yIY=; b=MdMwcVoaKEcis/ UNwkX/rdWjeRAn6/ZRE30yb2bJO3G37ps3yn4edRTRGF4DwiBPqqGBl6/KOd0GYlsPwS8LFecXmmH /g7pXtqR67jFMx+8Xrd9H3cvaZodyRHLlpiwbYramuajTRGW6EFOjGfA6M/t8YAlPvl4+jZGqchoL sTjlu7u2iQU3QixKSC/NK48J86Csln98ehbji5QFVtq0p0WgW7hhZp4mw9aOP34h8bowvTa1bypby 9Qhbr9tPLdkqGw/FGXXGAwCcuFMEaOXSVFAxJwdecNyRXQYdEBPtIcbw+zzZm+JzJ9lHXaw6rSTEh 1Baj9SRcddYOZBk86msw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z6C-00EdTW-5q; Sat, 25 Dec 2021 04:56:04 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z5N-00Ed6q-3s; Sat, 25 Dec 2021 04:55:14 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C0523B80939; Sat, 25 Dec 2021 04:55:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67BE3C36AEA; Sat, 25 Dec 2021 04:55:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640408110; bh=lhZLi2fHARrNEq4LLSfdR+qEsQoJ5dBnyjq9x9/osWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O47U4vTrj3QNxk6GmpLhVdXkGt5KIq0adYPONhPiS9zlmdIF6dLUKm0ctzE/UgxMe AOO+ct+kJG9RjRRx17r37NUn60LQ+rja9ygBdLrloP3wt0Bl5PnSmL+VzMw9xQogy2 jX7VJKQb09vFq2it5MjwIV32f/uONVr7d2xEbZ8u/DwV08SQ/FGn9B4+heWUVT31rU hRfkOMfWGSoTbXWqjwcGV2B+YN4kEZ1zNryRBx5lmDeCdiQALPnsWs6AoCf+ksoVYK 4E7ExCWDluxwuV4SMgi8C0SrGLz7GoJ//7HdRHpqJhZZzVYe71q2yKQWEDIPHvZHOQ yx1fmsSGGF6rA== From: guoren@kernel.org To: guoren@kernel.org, will@kernel.org, tglx@linutronix.de, benh@kernel.crashing.org, arnd@arndb.de, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, christophe.leroy@csgroup.eu Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.or, linuxppc-dev@lists.ozlabs.org, inux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Guo Ren Subject: [PATCH V2 4/8] sched: powerpc: Remove unused TASK_SIZE_OF Date: Sat, 25 Dec 2021 12:54:26 +0800 Message-Id: <20211225045430.2868608-5-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211225045430.2868608-1-guoren@kernel.org> References: <20211225045430.2868608-1-guoren@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211224_205513_336111_E0F9BE11 X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Guo Ren This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren Reviewed-by: Arnd Bergmann --- arch/powerpc/include/asm/task_size_64.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/powerpc/include/asm/task_size_64.h b/arch/powerpc/include/asm/task_size_64.h index c993482237ed..38fdf8041d12 100644 --- a/arch/powerpc/include/asm/task_size_64.h +++ b/arch/powerpc/include/asm/task_size_64.h @@ -44,11 +44,7 @@ */ #define TASK_SIZE_USER32 (0x0000000100000000UL - (1 * PAGE_SIZE)) -#define TASK_SIZE_OF(tsk) \ - (test_tsk_thread_flag(tsk, TIF_32BIT) ? TASK_SIZE_USER32 : \ - TASK_SIZE_USER64) - -#define TASK_SIZE TASK_SIZE_OF(current) +#define TASK_SIZE (is_32bit_task() ? TASK_SIZE_USER32 : TASK_SIZE_USER64) #define TASK_UNMAPPED_BASE_USER32 (PAGE_ALIGN(TASK_SIZE_USER32 / 4)) #define TASK_UNMAPPED_BASE_USER64 (PAGE_ALIGN(DEFAULT_MAP_WINDOW_USER64 / 4)) From patchwork Sat Dec 25 04:54:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 12699165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8E6CC433EF for ; Sat, 25 Dec 2021 04:58:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wFeCXoOvFukztmHpdAiWnhNuvfwD/pqNfCyZsPqVZ7Y=; b=lzOloOz2Gjp/u7 ivPLMYsewjhf11kcc8q7s7jJFyG4ReUqz7LgoeTPoPIDZ6sd1S5L1cLzXXQLWcigwAoODdFfiNDVd sriEfVLmte9Bv2IYpsuPsoWhOD8Ra3MzS451uTXreae1oco9vGfP6I2UR5nAuaxWbMT1geKWbc1zY 6x/2Ez1IyPn5KSCvPIOYZhXF7geXR7/d4oyJlf1iC4HaZIfhtX8cy5H7IeilrMs5nsTJOncvR8MXi JOo/kuZrhmgxkyG4ei8LiNxD4JdKAyvWDY4rc/irra0h6h9TlZdIxplqXPnOlqfAI3cN8KSqoMcLR HNGK7NZJgSdBCeirtOAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z6e-00EdiK-W8; Sat, 25 Dec 2021 04:56:33 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z5Q-00Ed8R-GU; Sat, 25 Dec 2021 04:55:19 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DA182609ED; Sat, 25 Dec 2021 04:55:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FA59C36AEB; Sat, 25 Dec 2021 04:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640408115; bh=Vgmo1LqXxeFPU307tJ+7Re0rBb1tuTZKi6eTay9/CKU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NGo1wO9sdj36PtKdUBWAd4trmVUnxha/FyZol7/QzhaUNMSCcZPWtP1yzEDVCVevC N/1lhUzpzRgy1RedS5iCmuo/qe7MvDbNGKtlnLus6afduc7J3PO0fc9nxb3pR5e7yL IRbuDbkv3R31z3pvzowLV+6m5C0eQMZATPm7Par3LwNY8b6wrQxbgChfLgZzn9IjaV +yR/9siwjeIC03/NYJEMz84Ux+XWjQy0MI5cWaHU+OsaLi9Moo9aQnRstbIm2paFDt 7cS7j9WXttR2b8B6kFj5CWM5yP6T1qLArpJFEKTDJP7ARxvU4C+okImQqAt0q6reZ0 G5nebMiv9M3bw== From: guoren@kernel.org To: guoren@kernel.org, will@kernel.org, tglx@linutronix.de, benh@kernel.crashing.org, arnd@arndb.de, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, christophe.leroy@csgroup.eu Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.or, linuxppc-dev@lists.ozlabs.org, inux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Guo Ren Subject: [PATCH V2 5/8] sched: s390: Remove unused TASK_SIZE_OF Date: Sat, 25 Dec 2021 12:54:27 +0800 Message-Id: <20211225045430.2868608-6-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211225045430.2868608-1-guoren@kernel.org> References: <20211225045430.2868608-1-guoren@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211224_205517_051748_A9D2BDD1 X-CRM114-Status: UNSURE ( 9.90 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Guo Ren This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren Reviewed-by: Arnd Bergmann Signed-off-by: Guo Ren Signed-off-by: Guo Ren Reviewed-by: Arnd Bergmann --- arch/s390/include/asm/processor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index f54c152bf2bf..5581b64a4236 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h @@ -88,11 +88,10 @@ extern void __bpon(void); * User space process size: 2GB for 31 bit, 4TB or 8PT for 64 bit. */ -#define TASK_SIZE_OF(tsk) (test_tsk_thread_flag(tsk, TIF_31BIT) ? \ +#define TASK_SIZE (test_thread_flag(TIF_31BIT) ? \ _REGION3_SIZE : TASK_SIZE_MAX) #define TASK_UNMAPPED_BASE (test_thread_flag(TIF_31BIT) ? \ (_REGION3_SIZE >> 1) : (_REGION2_SIZE >> 1)) -#define TASK_SIZE TASK_SIZE_OF(current) #define TASK_SIZE_MAX (-PAGE_SIZE) #define STACK_TOP (test_thread_flag(TIF_31BIT) ? \ From patchwork Sat Dec 25 04:54:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 12699166 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76EA2C433F5 for ; Sat, 25 Dec 2021 04:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LkPGmwh2u4Q15O0pP7RnzVNNN5y+A6dGljLDKsk3xCs=; b=UDVbuO4MIeT8qL k/biNlilz6lWZn1+6x0fhefrhQ/FzaqYjGNuZGzxK9xFKLrbmMTyndfGfdWZw/jRngCMf3X92z/x4 iMCntg0QlCTyyBvb626FOJuhyI+PpcoTnRvu5mQcKM6rIdk62XOshz28Xai9uej//7yyWWJ7Dgh7D DRZsIsRC/nHHNbj3a0d3Yh8jbPJ3wMuQw6cuUDYzhtF7TqfN7rpuQMYunb93RE81xnS4A81mEzV5y iK1OqCfBRu9MvB356GP0bwH/IveQ2J/5zfT4qu6GUAtl6my31jo0lF29nRFmgwjIPNsRPkObKdPBu fmCO/CflMxWE3wky1m5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z70-00EdvW-Iv; Sat, 25 Dec 2021 04:56:54 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z5W-00EdBX-H5; Sat, 25 Dec 2021 04:55:23 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3CF77B8072F; Sat, 25 Dec 2021 04:55:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0E70C36AE9; Sat, 25 Dec 2021 04:55:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640408120; bh=/ayHgJ9Axaat4L3UafkBublWKpTSwuiZsiIJQA7SVTI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=byeyQgL088RHuUcoteZf8L1ftXXDT+rEgYXOYcA9ZD/xnPU8llyVA9Spx4jNnhKV9 1j8/b4N4OF5K4MEyDLo4JZrgpgZwCrpCEHf77O5Jt+WgsbQTdRNXrGoWkMdvjwGkS7 dFf1Q3J4KF8IiCwFlI/tcbUh84kmgSYJcJ8msqLGSwxvsxUXFPExXhLibL0k3780Ws 9zclAaC1i7ObWRlUadIJl6kQ1V7zUHfbCJ9XnPg/nvmr8Q/ySuM44PsGyR+9KogkJC VKJlXkHVlsr39N16scz8vn+zGoeoUF+EpVZN5q3Ch9IfsH/Gtll2/mOjQG84wHdppU GLFFv7zo6QtxA== From: guoren@kernel.org To: guoren@kernel.org, will@kernel.org, tglx@linutronix.de, benh@kernel.crashing.org, arnd@arndb.de, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, christophe.leroy@csgroup.eu Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.or, linuxppc-dev@lists.ozlabs.org, inux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Guo Ren Subject: [PATCH V2 6/8] sched: parisc: Remove unused TASK_SIZE_OF Date: Sat, 25 Dec 2021 12:54:28 +0800 Message-Id: <20211225045430.2868608-7-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211225045430.2868608-1-guoren@kernel.org> References: <20211225045430.2868608-1-guoren@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211224_205522_768108_A8496F5A X-CRM114-Status: UNSURE ( 9.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Guo Ren This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren Reviewed-by: Arnd Bergmann --- arch/parisc/include/asm/processor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h index b669f4b9040b..d9c8dc76ee6a 100644 --- a/arch/parisc/include/asm/processor.h +++ b/arch/parisc/include/asm/processor.h @@ -23,8 +23,7 @@ #define HAVE_ARCH_PICK_MMAP_LAYOUT -#define TASK_SIZE_OF(tsk) ((tsk)->thread.task_size) -#define TASK_SIZE TASK_SIZE_OF(current) +#define TASK_SIZE (current->thread.task_size) #define TASK_UNMAPPED_BASE (current->thread.map_base) #define DEFAULT_TASK_SIZE32 (0xFFF00000UL) From patchwork Sat Dec 25 04:54:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 12699168 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A7346C433EF for ; Sat, 25 Dec 2021 05:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=neCNnMkYiAegcLiVWatfGvevb6A21XGr5fuXR+GmAOI=; b=ygUEUCu74cFPFg cUX+2JuNS/PDC3TCPb4aTSQLM6xusz4uyEJF6u4D70hGJMlhMnDx03xov3DsDTxkPrM/hGF6JlJKB bJ5hK7Vs9F782UH2bps8D5v/RUfLh/bwrQ152+cLzXp7iKWvEBwi6TdExB8sFkbeDA6gyqM/4/iM6 uuC3FT5XTYQ0kyeMIGW0onrsx3Q+u+X9VAzaSMf8uxHAlB2+Z3vC6+ckmKsHIRj0XmFu2nMlYHcRA mX8H28JiiPbHXNrCGFp3lC5hd59Gy4M0FccLLqPKZEIDKOTJBEAlTYJGjAl8FjKGkR5s+i1wdblOh gsNDibpdzZ35gIo1A2ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z7O-00EeAi-RV; Sat, 25 Dec 2021 04:57:19 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z5Z-00EdDw-QB; Sat, 25 Dec 2021 04:55:27 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5EB3E60A6C; Sat, 25 Dec 2021 04:55:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D298C36AED; Sat, 25 Dec 2021 04:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640408124; bh=2zgLt5m4opNmUCEFSnx0Q5KUECGIsLc07ztCDJUJaOs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rDZUQlpCKFHoVJUhEmnp3qJoPD/dkCpcxPxVab4pfzGV0bRYlto9zUDaUp2sJ1p3P QSv1tGv3cLd55dXRVh4qwy5EZmEETgCZ1rFV3yjxwxNFu8aZjCbYc+YAx9hDz8+mkN 2bOp4wCHmGoJaiTy/468jP53YfU7u3mC0pxDUq7pcDsyjKCQxAIZ/cWNI0CY7nPwFL 8tudlZG/ofnsRiynAt6BU413lHOAcGFvo+f/pS6EREBv6WRvwT77vOZdpcNcgddYWl pgE/+XNnE4ra9oS0Yff9+X2X8ojGenuNuheE/opao+eRHssOpXJ+O/Wa4sxh84eeXF Dkb/jNJpaRfeA== From: guoren@kernel.org To: guoren@kernel.org, will@kernel.org, tglx@linutronix.de, benh@kernel.crashing.org, arnd@arndb.de, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, christophe.leroy@csgroup.eu Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.or, linuxppc-dev@lists.ozlabs.org, inux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Guo Ren Subject: [PATCH V2 7/8] sched: arm64: Remove unused TASK_SIZE_OF Date: Sat, 25 Dec 2021 12:54:29 +0800 Message-Id: <20211225045430.2868608-8-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211225045430.2868608-1-guoren@kernel.org> References: <20211225045430.2868608-1-guoren@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211224_205526_340155_A62328B1 X-CRM114-Status: UNSURE ( 8.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Guo Ren This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren Reviewed-by: Arnd Bergmann --- arch/arm64/include/asm/processor.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h index 6f41b65f9962..d24dfb49237d 100644 --- a/arch/arm64/include/asm/processor.h +++ b/arch/arm64/include/asm/processor.h @@ -65,8 +65,6 @@ #endif /* CONFIG_ARM64_64K_PAGES */ #define TASK_SIZE (test_thread_flag(TIF_32BIT) ? \ TASK_SIZE_32 : TASK_SIZE_64) -#define TASK_SIZE_OF(tsk) (test_tsk_thread_flag(tsk, TIF_32BIT) ? \ - TASK_SIZE_32 : TASK_SIZE_64) #define DEFAULT_MAP_WINDOW (test_thread_flag(TIF_32BIT) ? \ TASK_SIZE_32 : DEFAULT_MAP_WINDOW_64) #else From patchwork Sat Dec 25 04:54:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 12699167 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6FF56C433EF for ; Sat, 25 Dec 2021 04:59:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dYOOQWY3s2eKJqFFPCWTpJuMpgYjTvyqKmbdXf1/RTE=; b=RQgkG8NsVpaabM CTlxYhOOzkizTzLEce/9qcbXA0AEpXV+Qq4mrgM3t4NU5Amr9fXgnZstTTguzKO4AHumX8ZOPe4hH pTWyVtWrPAz0mCqrcCSKUQmg/4UE+tKPyp6XX/S8mXYnA151tVzxJi6QC8hSyHlcrDdOlruq0AtDB qW7/aIp8BSA5FPgWfefblaxZ0SMevT804xe1mvRcbgj4pCqUEGbrprKVNO5dyG2iFUJusnIAHUNSw qLl0p3OxiEoj6IzC56hlDvtfk3mb1VS/vm2JATSGp9ePnEAD7NXAiPeUfec8YBB7ukrh3dX0oE/nu jfc5g6UnXGWHG3Z0rUaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z8H-00EeeY-Tw; Sat, 25 Dec 2021 04:58:14 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n0z5g-00EdGR-0y; Sat, 25 Dec 2021 04:55:33 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B2F6AB8072F; Sat, 25 Dec 2021 04:55:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 530E6C36AE5; Sat, 25 Dec 2021 04:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640408129; bh=w04+g7RvLMoxdOro5NWVNK03xjcmOlA8n0cnB++OVgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eCTqFf8wEuhKfl21rpwpQBj1OGBxWCcduW0UCq8AuFCWh6YKZEYyaumEk2oPBg1Nr +b+zZxfPoJ3FQCA+hOw+Dyq+etKS9P0I8GgXRJ67CoYacaJAYaUdNe9uo1GxKs9Zeb e7Z5rB3yAayaAqZQUVl8Uf+0CZkrtkYcIBmGt4Oxl0tRuSny5Nw4Xf/sc80GSbWWYB yJwEIm4ExI7dPLbBD7XWlQ8ta56gLEsInjVFihTzwwoHIvJB2QMShRxHwQ+0EhVR+w xU29LRpOI2qzHno8Xssll8YCIU+XJUk8Rgcu46UvpsQfNVvEf49cUEqbdq/itMNGjx Oq3EWlpNtKNjQ== From: guoren@kernel.org To: guoren@kernel.org, will@kernel.org, tglx@linutronix.de, benh@kernel.crashing.org, arnd@arndb.de, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, christophe.leroy@csgroup.eu Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.or, linuxppc-dev@lists.ozlabs.org, inux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Guo Ren Subject: [PATCH V2 8/8] sched: mips: Remove unused TASK_SIZE_OF Date: Sat, 25 Dec 2021 12:54:30 +0800 Message-Id: <20211225045430.2868608-9-guoren@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211225045430.2868608-1-guoren@kernel.org> References: <20211225045430.2868608-1-guoren@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211224_205532_237754_94234B6C X-CRM114-Status: UNSURE ( 7.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Guo Ren This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren Reviewed-by: Arnd Bergmann --- arch/mips/include/asm/processor.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/processor.h index 4bb24579d12e..8871fc5b0baa 100644 --- a/arch/mips/include/asm/processor.h +++ b/arch/mips/include/asm/processor.h @@ -61,9 +61,6 @@ extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src #define TASK_SIZE (test_thread_flag(TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE64) #define STACK_TOP_MAX TASK_SIZE64 -#define TASK_SIZE_OF(tsk) \ - (test_tsk_thread_flag(tsk, TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE64) - #define TASK_IS_32BIT_ADDR test_thread_flag(TIF_32BIT_ADDR) #endif