From patchwork Fri Dec 30 15:56:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Safonov X-Patchwork-Id: 9492303 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0BB2D60453 for ; Fri, 30 Dec 2016 16:02:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F10051FF29 for ; Fri, 30 Dec 2016 16:02:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3AF822638; Fri, 30 Dec 2016 16:02:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3D6BC1FF29 for ; Fri, 30 Dec 2016 16:02:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMzc0-0006hN-Vd; Fri, 30 Dec 2016 16:00:56 +0000 Received: from mail-eopbgr00120.outbound.protection.outlook.com ([40.107.0.120] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cMzbg-0005gY-Rt for linux-arm-kernel@lists.infradead.org; Fri, 30 Dec 2016 16:00:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QZ2EB1WlWxDUHXI/0XnmS5DF4UPuE3DLsHvMloKaeWA=; b=e8q0JHdhapo5nBXoEGxx1Xpc4USn5vjkrYF/Cy2NR4WOW9eM/n4GIwra8U2KRCMg+qGAPbudC6i7wOpYwMTqnXExUBZiNgt834nIewnaloqMVvkWmLzI7ODLz4nt3UpKo//FfHckJ4EqH7MemJe6oMyfDFExgUXTLAQrtwfb/mE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=dsafonov@virtuozzo.com; Received: from dsafonov.sw.ru (195.214.232.6) by HE1PR0801MB1740.eurprd08.prod.outlook.com (10.168.150.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Fri, 30 Dec 2016 16:00:08 +0000 From: Dmitry Safonov To: Subject: [RFC 1/4] mm: remove unused TASK_SIZE_OF() Date: Fri, 30 Dec 2016 18:56:31 +0300 Message-ID: <20161230155634.8692-2-dsafonov@virtuozzo.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161230155634.8692-1-dsafonov@virtuozzo.com> References: <20161230155634.8692-1-dsafonov@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: VI1PR09CA0080.eurprd09.prod.outlook.com (10.174.49.152) To HE1PR0801MB1740.eurprd08.prod.outlook.com (10.168.150.7) X-MS-Office365-Filtering-Correlation-Id: 4bb844ac-fa94-402f-6dbb-08d430ccef85 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:HE1PR0801MB1740; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1740; 3:15HV4IBN8kU6HCrk18MTxgm6pa7+pDZKnzU9XV8y+CIj/DE4pw+s8+JJ8Xx2n/b0vVm7+pV4RPkHwmldn2AE4NkpIsTSt1JhjjCCrS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n2o4ID14mDhl7GYjOxkTHIrzN1N4HsuQbb6bBGKnadVkOJc1JvuVrCYWRz9NEQRAzzOGJabHOMGb7HcKrwR1UEHQOARnyVPYR2lMml+MIvXK+b5yWtA0H+vOWrk0TAkUXRHvEEhwoLYBupjSy X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(26323138287068)(9452136761055)(65623756079841)(190383065149520)(258649278758335)(104084551191319); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123558021)(20161123564025)(20161123562025)(6072148); SRVR:HE1PR0801MB1740; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0801MB1740; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1740; 4:188llFYAc3cBEAXalG6Hanb6PwvTO3vADJhFpMsoAIBIQWdpoAX7RM9VlStfL2jE5A7GaK12en0NNVsQAtci1DRn5kQ4W6JfqL7BJUmK2JEBIxWVk+yz/cpmMjZGZHdQjt6nCZM5XXH+kGJdpAVp6Wxx53pAPvAwJ0U/IirprMTbrXbYUVITG4FPxBdb3PxmmHnl4KrbkvHp1R8L6Hl1pN1gQd+NlFAuXRW6IF5FS51L4+5ac1j9UIUdtulVcA5Vhj8A1E+dZler+TaEo9stp2Uwlfx+dwdA/J2VInXLWGhym8gGtUJhYy/jt1EyS3L7fPuICaJoEnRl0ZvAN8mIzUPs9/lRXWxopYS29eNno3Da2XxaT6Kx8XE4fxSWbaUVLu29LciktXLAzd7fe9454qCO9LZnj9YyxNGpZSq6Kb/gGCJBoXcNcTICFeVJqBXF8+o1sHSc3ZcwJ7SiIAAKCc++jgg8dT+ofFiIhWrshEh156d9Ah1sX1Z5gVkXy8q8yVrr1LlFEhtnHfeb3FxIezYbx1swwQi9YJRtrR79EqicYU6T8LQ18ZG35COCGaTCSNukMrauxiHEK2n+A5sl5GTV1vNUeSun4/pAgIByXkuHlBrZkeZaw9ucRiS19rYV2cxGMg+OiZl5C1OKDxVD+kXDob0YoVuQsVAaTAuRJhNEtKsAIWSBDfeIXmaEqOa4vLQQnlwlVRuJ6a3/z+VYjr7+ZBKKgo5ZlZhtFZcGVxP57A3oqyC4eQ6IYL5G+Ymy8xvcuJDE4/UBjBJHa5ekmvYcQo9A5KsDmWRUSXFZpbaoSNHfS2wfsUCLnMtCFujoOCuJTLkKDh8UvDAR+2linEEA87KDXdqLPc9zUrV+1Z0= X-Forefront-PRVS: 0172F0EF77 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(979002)(6009001)(7916002)(39450400003)(199003)(189002)(36756003)(81156014)(8666007)(50226002)(2950100002)(6666003)(6916009)(110136003)(5003940100001)(69596002)(66066001)(6512006)(81166006)(101416001)(68736007)(8676002)(47776003)(25786008)(76176999)(86362001)(50986999)(106356001)(33646002)(92566002)(6486002)(5660300001)(2351001)(189998001)(53416004)(38730400001)(42186005)(105586002)(305945005)(1076002)(6116002)(97736004)(3846002)(39060400001)(7416002)(2906002)(48376002)(7736002)(50466002)(4326007)(6506006)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0801MB1740; H:dsafonov.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0801MB1740; 23:FxpyZb/oyLiME23Q9XYsHTEakCRLLVICe1z1HwR?= =?us-ascii?Q?6l/tii0WrZeljAxeKcrF6YXTvv+g8YHIFoGuG58gBTgBY9K/RNeB/lGGkt2m?= =?us-ascii?Q?WfFfkVKDaBXEsqsh0Pmtm8bJUkp7hPulF6VRDqCPhbMN0q6780NpJ80otBdh?= =?us-ascii?Q?koaJiW3C6YWNUlH87x2Z30eNoSFcau3h6m5/JN+jIAj9D5OIurifYrEfJva6?=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k/jGaE2MJJK/P6An96mNyivODD?= =?us-ascii?Q?Gmv/UVwZsJEIy0v02uzlG6MTdQ7fWnbbXD6/fmY0AEI93U4yyAYqEPtmHHhj?= =?us-ascii?Q?wRL9Y9v1klZyG2rFxSHIEYJSdTf9zNV/4Q4Zp+1Dy0xOFgEkzt1giHLKrk13?= =?us-ascii?Q?30+1fD2wSIs7BgsnaCw7OYQKk3VhV+p8G3v72l4V5eZrTQNM6vgdg+IJKLRo?= =?us-ascii?Q?/rfwvbezoZmcvsWlOfdYWjB0=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1740; 6:QoEEE2234WjUs5DEwJ0GXXrvnt3r2oVLSGLKNWcTo9Of21otuEUHx9RhX5t0KfVn6Sr8/Mcf7O/hO8xjg7Ksz1ltAk19saa3E3kUd4n0idBnZq5XP3on7YBxiVbEfhkSQ1oW2z9jAJAle+0pHTeBn970rRTAEgLJrBw2nbGS53moI/1TsIcfRD36yUtU80GC1fed8pTbZdfa056fyzRlf+pD3L513AxgHWG47Rcbtn9o+j10b5TJygyOv4FN6U5xGx8KFzAYYN1LSssfSU0o1VlroBRkHp6uFSxedOAZnkvcw1Ac21eh0obohLYIjs8zOVtvSOpcbyTcnhzVvsV8xrQ7Uq0OJqiRFtHdHq3nBYJ0SY2QOeQvRYG7s4jZDBcdAlkQNd8N51yWFwWMbRbb3bEX+/vDjPWS/HpYfWpglSU=; 5:53qoslIS264I0l3mWK0OnTAfoG9WdbDncYAwAxTWdjwBOoOZ2noJr3Qhht3RpF7ynHJmBhQuFOwmOzkVMIdBvdIcxa53jVBouEspE3+A155jHBq/+j+OKyCZNv72GM1EQV+u/8IJzpjJFuwtiQMqBQ==; 24:LvSDWv73mXXMV0vuW5/vaHOano2Jnxl4YDe8064+ceAqXvzglBtlEJpc3OC1jAIKet/CHydDOAXnqqveCFzuDUc3tpvvasoj0JiyIm0LwRc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0801MB1740; 7:svpher4DrZeDeNwTc0rwshbo+plJmvk/brYkmPvBbjsjLKoFaHGOGjkMHHunwr2voHD8VdYAKOnXtzdLqz9vS4rXMSK9fcqKnuyqoWKMI25vOrGasJ8WFG94xbIygGpcpGU3CWr8JeEuysPpWfKuO5ONeXf0Ne2W0JeoATEjYehZXknJI5sd3bz07irkX5ahvfsdWyAqW3lNDzaoiCXiHWpXYYp6K2e9g+hrIrCLzZmSTZa4AMnapfEspseoBgxiuzOkj9IQKsEjVdMuglpzMsPtJdZHPfCt27o+1Xeid7xfaTyoHjwYntldzKZ/QRvbX+nRXaaatNjTFPkHY6OdT4JzhZhqhQmPHp0IgkgUWh55Lx+f6U3vpAimyNSyJYL2fSP+1Ou2wn/wKINYHA+oB46qCb5Y4f83P9WARJDauR/GPWOqLFYrJUIfdy6PfKlcH/50XW+e6llsiWheBDfR1A==; 20:5cmJVEyTSMuc0MA7HWf330a1Kdf7GDa5MBjjZT5KCr1R+LHftHQdC5rezxd5Tn5TtmPE1//S/Ukf+WR7jF81G5nsbLOtGCAi6XZeWhbV35fBSdAPRiP0M+U2dZzZCAl28Wh3SYjmLjNrDe6Acm9Rnkr0P9MCdSU7M21ahhE92TI= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Dec 2016 16:00:08.9080 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1740 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161230_080037_093740_8974F704 X-CRM114-Status: UNSURE ( 9.30 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mips@linux-mips.org, Peter Zijlstra , Benjamin Herrenschmidt , Heiko Carstens , Paul Mackerras , "H. Peter Anvin" , sparclinux@vger.kernel.org, linux-s390@vger.kernel.org, Michael Ellerman , Helge Deller , x86@kernel.org, "James E.J. Bottomley" , Will Deacon , Ingo Molnar , Catalin Marinas , 0x7f454c46@gmail.com, Andy Lutomirski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-parisc@vger.kernel.org, Dmitry Safonov , Ralf Baechle , Martin Schwidefsky , linuxppc-dev@lists.ozlabs.org, "David S. Miller" , "Kirill A. Shutemov" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP All users of TASK_SIZE_OF(tsk) have migrated to mm->task_size or TASK_SIZE_MAX since: commit d696ca016d57 ("x86/fsgsbase/64: Use TASK_SIZE_MAX for FSBASE/GSBASE upper limits"), commit a06db751c321 ("pagemap: check permissions and capabilities at open time"), Cc: Catalin Marinas Cc: Will Deacon Cc: Ralf Baechle Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: "David S. Miller" Cc: Peter Zijlstra Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mips@linux-mips.org Cc: linux-parisc@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-s390@vger.kernel.org Cc: sparclinux@vger.kernel.org Signed-off-by: Dmitry Safonov Reviewed-by: Andy Lutomirski # for x86 Acked-by: Heiko Carstens Acked-by: Kirill A. Shutemov --- arch/arm64/include/asm/memory.h | 2 -- arch/mips/include/asm/processor.h | 3 --- arch/parisc/include/asm/processor.h | 3 +-- arch/powerpc/include/asm/processor.h | 3 +-- arch/s390/include/asm/processor.h | 3 +-- arch/sparc/include/asm/processor_64.h | 3 --- arch/x86/include/asm/processor.h | 2 -- include/linux/sched.h | 4 ---- 8 files changed, 3 insertions(+), 20 deletions(-) diff --git a/arch/arm64/include/asm/memory.h b/arch/arm64/include/asm/memory.h index bfe632808d77..329bb4fd543c 100644 --- a/arch/arm64/include/asm/memory.h +++ b/arch/arm64/include/asm/memory.h @@ -80,8 +80,6 @@ #define TASK_SIZE_32 UL(0x100000000) #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) #else #define TASK_SIZE TASK_SIZE_64 #endif /* CONFIG_COMPAT */ diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/processor.h index 95b8c471f572..c2827a5507d4 100644 --- a/arch/mips/include/asm/processor.h +++ b/arch/mips/include/asm/processor.h @@ -73,9 +73,6 @@ extern unsigned int vced_count, vcei_count; #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 diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h index a3661ee6b060..8b51ddae8e4a 100644 --- a/arch/parisc/include/asm/processor.h +++ b/arch/parisc/include/asm/processor.h @@ -32,8 +32,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) diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h index 1ba814436c73..04e575ead590 100644 --- a/arch/powerpc/include/asm/processor.h +++ b/arch/powerpc/include/asm/processor.h @@ -111,9 +111,8 @@ void release_thread(struct task_struct *); */ #define TASK_SIZE_USER32 (0x0000000100000000UL - (1*PAGE_SIZE)) -#define TASK_SIZE_OF(tsk) (test_tsk_thread_flag(tsk, TIF_32BIT) ? \ +#define TASK_SIZE (test_thread_flag(TIF_32BIT) ? \ TASK_SIZE_USER32 : TASK_SIZE_USER64) -#define TASK_SIZE TASK_SIZE_OF(current) /* This decides where the kernel will search for a free chunk of vm * space during mmap's. diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index 6bca916a5ba0..c53e8e2a51ac 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h @@ -89,10 +89,9 @@ extern void execve_tail(void); * User space process size: 2GB for 31 bit, 4TB or 8PT for 64 bit. */ -#define TASK_SIZE_OF(tsk) ((tsk)->mm->context.asce_limit) #define TASK_UNMAPPED_BASE (test_thread_flag(TIF_31BIT) ? \ (1UL << 30) : (1UL << 41)) -#define TASK_SIZE TASK_SIZE_OF(current) +#define TASK_SIZE (current->mm->context.asce_limit) #define TASK_MAX_SIZE (1UL << 53) #define STACK_TOP (1UL << (test_thread_flag(TIF_31BIT) ? 31:42)) diff --git a/arch/sparc/include/asm/processor_64.h b/arch/sparc/include/asm/processor_64.h index 6448cfc8292f..6ce1a75d7a24 100644 --- a/arch/sparc/include/asm/processor_64.h +++ b/arch/sparc/include/asm/processor_64.h @@ -36,9 +36,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)) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index eaf100508c36..090a860b792a 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -819,8 +819,6 @@ static inline void spin_lock_prefetch(const void *x) #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 #define STACK_TOP_MAX TASK_SIZE_MAX diff --git a/include/linux/sched.h b/include/linux/sched.h index 4d1905245c7a..7a2e2f3f38a3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -3610,10 +3610,6 @@ static inline void inc_syscw(struct task_struct *tsk) } #endif -#ifndef TASK_SIZE_OF -#define TASK_SIZE_OF(tsk) TASK_SIZE -#endif - #ifdef CONFIG_MEMCG extern void mm_update_next_owner(struct mm_struct *mm); #else