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: 73942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2809572wrt; Thu, 23 Mar 2023 02:36:09 -0700 (PDT) Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fSSowVKk X-Google-Smtp-Source: AK7set8mYPH7wm5VJfevLFoyc1iH8BPNkcTotkaStDBLDlMLOJ/zgytpa2opzN387rSzwkkEWH/O X-Received: by 2002:a17:90a:1c2:b0:23f:7c8c:4f2d with SMTP id 2-20020a17090a01c200b0023f7c8c4f2dmr6732400pjd.16.1679564168818; Thu, 23 Mar 2023 02:36:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679564168; cv=none; d=google.com; s=arc-20160816; b=JpvJaOtx6Ibv/X1LnulZBPYbOtKiaDrnC/tIf++E7tpdEuMO7Ydc2/Gj0/xSsyhkjm 9EaZj6kqT1b8aPjdY/gQ3rL3nywi52eaP5lwG91GKF7TQXWs1TzVm3OUZmVJzxGLRgt8 la2rGG8joS5JUiBTDWjVlqWvAVJWnsZPi9fak9BCbdyewa1fT2EaTTG8rsjtPlafK2OE I6FwJ0mKsb+EqH/cpVNz5VDM/M9I6fXVgi4qeyI7gjKb6DtZgviPEQV9CxSSLWWvdo+Y ztomsNPFvGF6w7+w9XW2KE9zM4fk4UsUBgdliNo5dOLFjs2JW1xDfyLW74tYAuXuujYg aFQQ== 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=h+YlYSthhOBb0s3FtBNRszFjjOIbwOB7F0p1CBuDGvk=; b=Wnl5gr0txSLRUS8pgcdpyzbFhl0GqyDbtbEX28DpFLuExQPO7r3sh7xx2/iRI86npj rxKM4FlobJWiBXAq2H1HSd4/vDVjL8OCHnajsl7nOdJY8g7NE7104h642dKlvRP+aJNg HstPXSULTRYEplNjcObekBJVRZXrX8DJHMVqErXmu29e4+6G0SAtJVPAkDEYrF3/Eqtb TstV281tjL87nwxO4TnQZ0AcWTHnuoQesLc74noxt4NVTUHUN9W5UY3AIZ5n7RdF7R65 pxcoMufh7V2gb68Zpmx/zjqsJzcDj2g+iMQjbqFWiUGzSVZgjEfRlqg1vJaPQQDzWxxu MamA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fSSowVKk; 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 r23-20020a17090b051700b0023f58e27405si1390489pjz.32.2023.03.23.02.35.56; Thu, 23 Mar 2023 02:36:08 -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=fSSowVKk; 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 S230291AbjCWJ0k (ORCPT + 99 others); Thu, 23 Mar 2023 05:26:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231654AbjCWJZs (ORCPT ); Thu, 23 Mar 2023 05:25:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87340227A0; Thu, 23 Mar 2023 02:23:47 -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 ams.source.kernel.org (Postfix) with ESMTPS id 29E24B8202F; 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-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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761150677808800062?= X-GMAIL-MSGID: =?utf-8?q?1761150677808800062?= 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