From patchwork Fri Mar 24 05:22:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13186427 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76D26C6FD1C for ; Fri, 24 Mar 2023 05:24:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 15BF46B0081; Fri, 24 Mar 2023 01:24:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 10CEB6B0089; Fri, 24 Mar 2023 01:24:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F160D6B008A; Fri, 24 Mar 2023 01:24:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id E3C3C6B0081 for ; Fri, 24 Mar 2023 01:24:22 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id A805814088F for ; Fri, 24 Mar 2023 05:24:22 +0000 (UTC) X-FDA: 80602651164.06.9F8DA4E Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf21.hostedemail.com (Postfix) with ESMTP id 019DF1C0012 for ; Fri, 24 Mar 2023 05:24:19 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dceuPNgI; spf=pass (imf21.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679635460; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=AztSsaZ92VAuFSJuok08H3cWD/CdNCVrzP3sxf84q4g=; b=NFQK7js+/S0PCMnogf8uJvG+ytnF75M1McnxDjgZ+iEjSW2fZ1npY0TLDvSP7YP7XeWuFb 6E/LXYYQXbI3/CRdi3Wr8YMGIfMTe9tBkDsFU/5XTWxV+VGnf4rVi2FRSLd3C150C0yQuJ bx/3shsJRiSaFFkD6h0Juwe/OVCIlOQ= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=dceuPNgI; spf=pass (imf21.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679635460; a=rsa-sha256; cv=none; b=CcyzWpZkcvdDLjdg51Qfs+e02BEcqEZV1+NDZT2k4xr3UWvbC2Ub/atuJ4UvuIfgc5BFUf s86Yl8s1FGLtWpQ8jTYeR4ZYJAvOCLOAgg/q21TV9sWPrfMMbYx6MnrVygB4hk7KQBrnhR eG4c/unPh88K6w3j4WSsHRtAlUfW2zY= 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 355F36291F; Fri, 24 Mar 2023 05:24:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4089AC4339B; Fri, 24 Mar 2023 05:24:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679635459; bh=2lIjtXQSdcPY0DUqT1XLAyw0+E/MCp0PQPELkL71E0U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dceuPNgI5Lc/LCXyRzwFY4/npUh6dlu9Jhf/5eDd/XyaVsIGMLoMPrdYjI7XK6uZP coyLCsgXODg4jj7S1jXh408wnk/zgT4xAXB/dWAmdQO+aAm+79EYo2sOWU+OoAImta YL9EHR6dA8Kps/hg6PME7zMMXHGMFvB211a7o0e9LKIsz2bmyJpqJlzRUmqW1C6AvN V0P40bGmPoQIFcGl1LmDV3EfEVUC6+2aZqfM/MmSE6mZwkTOkRpuvfsW9eC/SB5z17 V0rtSxp2kFu3NwplK2cfNnLH3uUv2ccoj+Hr7KlRYWOO9SL3Gps/yrFwdY+lQTcWhX pzQoZjFHXTMgw== From: Mike Rapoport To: Andrew Morton Cc: Arnd Bergmann , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: [PATCH v2 12/14] sh: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Fri, 24 Mar 2023 08:22:31 +0300 Message-Id: <20230324052233.2654090-13-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230324052233.2654090-1-rppt@kernel.org> References: <20230324052233.2654090-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 019DF1C0012 X-Stat-Signature: zsg9t5htsffkiz3i4h497skfokwsmqae X-Rspam-User: X-HE-Tag: 1679635459-42189 X-HE-Meta: U2FsdG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ah241RWT7nhdjKxQTHpsjXGTuy6/fJT4NXP+3xjm/iZAKN0bnncVNh+Zq8pBRET7e0f25WUkwszU10HIrj6tuA+KyDRku9Q2MfHdrGxoatLg1X3kdYe/c1Q0D9pKGgT312x8hDG/RncDxY3+EAHFeVvJ2qgtbx70YPHUl+YFSH6vjwT+GFahFEvnXfkbiJjTCXXDsBLH6s2i8jELbLTP9NkU48iSTabNLpW9qMvbYMUBO8bLyMLV33ZKEE9mMYwvmXn1vvrHl/0pgS/w5aZnC/tb05s34n75SP5QUV53yCjoOEB3NJwkSPj9Fc31F3hJDzYOvpzz7MxqaEXxlJg3AzZEydDgk6OUbg1sWBX7VxNooqlovBEZ+sPg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: "Mike Rapoport (IBM)" sh defines insane ranges for ARCH_FORCE_MAX_ORDER allowing MAX_ORDER up to 63, which implies maximal contiguous allocation size of 2^63 pages. Drop bogus definitions of ranges for ARCH_FORCE_MAX_ORDER and leave it a simple integer with sensible defaults. Users that *really* need to change the value of ARCH_FORCE_MAX_ORDER will be able to do so but they won't be mislead by the bogus ranges. Signed-off-by: Mike Rapoport (IBM) Acked-by: Kirill A. Shutemov --- arch/sh/mm/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig index fb15ba1052ba..511c17aede4a 100644 --- a/arch/sh/mm/Kconfig +++ b/arch/sh/mm/Kconfig @@ -21,9 +21,7 @@ config PAGE_OFFSET config ARCH_FORCE_MAX_ORDER int "Order of maximal physically contiguous allocations" default "8" if PAGE_SIZE_16KB - range 6 63 if PAGE_SIZE_64KB default "6" if PAGE_SIZE_64KB - range 10 63 default "13" if !MMU default "10" help