From patchwork Thu Mar 23 09:21:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13185358 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 A7F04C76195 for ; Thu, 23 Mar 2023 09:24:45 +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=VCpysiRUViNZM3MiuJy63a97AuIjgWpovDKakf54aXs=; b=nuFU1qpBT2oLP4 mJ4ALbuRztvYNiiz9mRyzRnyMNiX0z0nQJzmznYLCoht6Sl5ZCNYLLYyo149i24Rxa+wouKTZkSfT +4ACmNzKAT6FreXQHXrh6VkT4Q3nnhmzumR1ta1N6zyLlEdfZ9ELsOW4mkkalxPopIp2z4tpnwUb1 Xtbd9bj6IlJuj11ysSDFCK62FZ1VYHvCmbf8RmW7mu8A/Sf9TES84T+EpTL1KPORgoCY2C/K3I+Z/ XkCbLjrti2bwh8kNifi5SwZ+fTBuSPI/X72mmvRokUDUMMqxIDwtsAOnmrmMXNcTQ2eFLoPdiooVn DNdyFOYDdD8jXPTJ7P5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pfHAu-001QnH-0j; Thu, 23 Mar 2023 09:24:00 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pfHAh-001Qeg-1M for linux-arm-kernel@lists.infradead.org; Thu, 23 Mar 2023 09:23:49 +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 188C5B8202D; Thu, 23 Mar 2023 09:23:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD746C4339C; Thu, 23 Mar 2023 09:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679563424; bh=99+9gRXuNZGZrnvJd+Y1nZy5usyv3NMBBGlXNWMVJhs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fSSowVKku6I+4khALqKcaWeFjf1TxQwq6N17YCC7lSQQq1PMKZNZXR6Amg8KHBCln 8D1+czeovKFYgk9ba7AwrEOWdx4T4TvSidUG4w0oEnP7Ux2idkiveTG5RuhNH001uj ZH2wbqVR6pwA72IlRr0A0Vm+Px75ZhuzsapmFJ4MJUx20c6j0uj+d4nkaYltR2HdGP LBmRDMYlYeROh4iX+5zaZEFyfMPZyDOym4GBzHOPHNe4Rg7MF0KLgYOBU/kY0U7tEp 2qhz4vjT8nOntJZetWtWrbF6J0wrO+fnxdSyIdjlEGw6E/HBeJt9B+RUXXoHM7dYWp 7S274GLZIA5Jg== 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 12/14] sh: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Thu, 23 Mar 2023 11:21:54 +0200 Message-Id: <20230323092156.2545741-13-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230323092156.2545741-1-rppt@kernel.org> References: <20230323092156.2545741-1-rppt@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230323_022347_615478_8F90A63C X-CRM114-Status: GOOD ( 13.87 ) 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: "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) --- 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