Message ID | 20230324052233.2654090-13-rppt@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp389097vqo; Thu, 23 Mar 2023 22:30:00 -0700 (PDT) X-Google-Smtp-Source: AKy350Zk2FxdvIqJL2Q2QrN5gEqHuQ+gB14z3d/xoj0gQIVGDRuvsP799nCCgy4CzefSmGkLWhsa X-Received: by 2002:a62:7988:0:b0:625:e8ec:4f5b with SMTP id u130-20020a627988000000b00625e8ec4f5bmr1847964pfc.6.1679635799738; Thu, 23 Mar 2023 22:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679635799; cv=none; d=google.com; s=arc-20160816; b=JHbpyjXn8GhZ0vY7DnkYeeTUPf7gxwiowDw2UhqZSJGiyPsO6qebGnM90hyJFHve5b 0WtJMhBsH2yiIlvUMIBofpv6MzeKyd7QQ+ul12ba3tXHHuOUhP5Hv/vckrze8ru41IJA Vf6Kt8sFtAuxUAf7f5i5OC8p1/O4ULBmVGH9P9gfGoOS61FrdbcOiOOTpUuyJ8zY9M2h a2RgP2U96jieSZiAYBzKOU8ggVwfFKVw141zfqPS/tPR9zRJ11txgSpUHkrAaE62eWs1 Gx6PT5Hk0e9UfVpI/hiHiup+yF7C5qYMjuRfNEs+PFLw6uewtxhAHnTdWY+z5oY+2b/D UEJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AztSsaZ92VAuFSJuok08H3cWD/CdNCVrzP3sxf84q4g=; b=kQsre2Q148zJXpPyZyTh2gbE0/fkVEVZzq1vq/cSadyOELssZC8BaL9VSKytOEkYHq EOor727NemCahQKfY46/u293I70rb2FmtGuf20rGoP6T8+I3iAUO5DLg/cyDRID5CBmx aXxBOVp3P4iigMAGVDt258ae4gGBoAZrCrEjjY4TbxEFsRAiMWHX/TmsSTm8mpO9sZo5 ieDcCyWh44L0YUpJPe6BSY7Qz6ACBjNKDIAvRTX83SG1EMWvhxfN72Aq9bxeZ0eseT4S xOXvbf02sXabd1bch+4+AB5z6Q2jPpfouppPbB+seaPWMKj2xA+eTWIgieg9zUYyOSzz O52Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dceuPNgI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a056a00072400b006254c97a3dasi19371985pfm.301.2023.03.23.22.29.47; Thu, 23 Mar 2023 22:29:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dceuPNgI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231235AbjCXF0D (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Fri, 24 Mar 2023 01:26:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231494AbjCXFZI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Mar 2023 01:25:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA282A147; Thu, 23 Mar 2023 22:24:20 -0700 (PDT) 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 984CD6295A; 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 <rppt@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: Arnd Bergmann <arnd@arndb.de>, Catalin Marinas <catalin.marinas@arm.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, "David S. Miller" <davem@davemloft.net>, Dinh Nguyen <dinguyen@kernel.org>, Geert Uytterhoeven <geert@linux-m68k.org>, Guo Ren <guoren@kernel.org>, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>, Max Filippov <jcmvbkbc@gmail.com>, Michael Ellerman <mpe@ellerman.id.au>, Mike Rapoport <rppt@kernel.org>, Rich Felker <dalias@libc.org>, Russell King <linux@armlinux.org.uk>, Will Deacon <will@kernel.org>, Yoshinori Sato <ysato@users.sourceforge.jp>, Zi Yan <ziy@nvidia.com>, 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761225788350973229?= X-GMAIL-MSGID: =?utf-8?q?1761225788350973229?= |
Series |
arch,mm: cleanup Kconfig entries for ARCH_FORCE_MAX_ORDER
|
|
Commit Message
Mike Rapoport
March 24, 2023, 5:22 a.m. UTC
From: "Mike Rapoport (IBM)" <rppt@kernel.org> 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) <rppt@kernel.org> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> --- 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