Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5742069rwl; Wed, 22 Mar 2023 01:25:23 -0700 (PDT) X-Google-Smtp-Source: AK7set/+A1dkLvFcmUB/n7ImmAW8yvp5FBDv9opSKm/FnSdt55dMY/J75Jid8Fu06DD6+8fxHGSg X-Received: by 2002:aa7:d990:0:b0:501:caae:e0de with SMTP id u16-20020aa7d990000000b00501caaee0demr6503379eds.4.1679473523274; Wed, 22 Mar 2023 01:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679473523; cv=none; d=google.com; s=arc-20160816; b=hG3eUIrvzNbmrArJwc5Zud2cbCjhdzm/EsASRnXSZRJZMI58WJyA3j2AiBUh+70Dmt BPp8fNFr10VbKOjQvWa7rk0GlWsWPpLRxJRDb63vkwyDsDd8dnz47Iq0eBkeuiqQZK6D nl5fPlvSWSJnyPzT9BRGRI3G9wKOJkkJFXX/pyDQOS42WGzbF2kiJOqPr20+jMb/prld K/GgBY0pY/sNX9rEp4MWlT1hQGSFDcww2kcXRRswJbQFurVWQ5VZCulfz/VzVAEd7x7N DYQxsLsseQ/g1bcbFeOTjO6TyzIugjb5DcotSHcyyFHUrRBJ2tmwvs1EZXTDuaGYWjyf Oflg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=oOrKQ/6qV5OJIwA9qbXR2kmt26dxfauacoEnSwVqYZU=; b=a23QKnpgPtSQsC+24hXmRWeSs4kXF9Js4YmGc0z61Mg5jK5kEuA+gV0CiSv+h3WhD5 mqe/bsDJ9XOmNO1fcV3NpMI9e3P9PlAOpiuyXGZU0+MbcnfmK7EzeOHtoldIq/NKWgiF Qx39pnUTFtp+uQN3YpUS8A3M3k26VcMxnvMBvtbde08m1NKLip8HZ/9sAOsnHtZ5bJLH GUeVMxmMSdv4O9w/h/vwp7rQSeDpHdfCRlIZ2F/QqGSsDZF4ns/7au0/bbULzBPi4+X1 KDYMa5nMPiZ3r9QA7u7ts28Bw3zgJvDTlbwG4PJ36W5uyDQKHEN7YOF9rzTVcWovOt6M wcjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YW5WFWH/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sk19-20020a170906631300b00939e87fcf99si3813311ejc.417.2023.03.22.01.24.59; Wed, 22 Mar 2023 01:25:23 -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="YW5WFWH/"; 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 S230098AbjCVIRo (ORCPT + 99 others); Wed, 22 Mar 2023 04:17:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229990AbjCVIRm (ORCPT ); Wed, 22 Mar 2023 04:17:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 839C55D26C; Wed, 22 Mar 2023 01:17:41 -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 D3AE961ED0; Wed, 22 Mar 2023 08:17:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A400EC433D2; Wed, 22 Mar 2023 08:17:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679473060; bh=4Q0iAD9vF+3RBVg+My0zZAgAHRwIrYDxgeNinL++dLo=; h=From:To:Cc:Subject:Date:From; b=YW5WFWH/ZrLn+YDPpteJOhgqjZqeNf3+PKnv2gaSmlwxCVASe38G7lbaHQYrkqGwm RlXZAD8+8gj7kcQ6bI8XNtuaKafkV+E15o9RAVKGoMu9pwUbamnqIu8pk/nbLi5yLa EHGUEFuw3Kr5V4/pyVP0OVnMa9dgsKXvfMwbX0LXm+oIoUF3sadDIVTHRxyTNxnPDh WEHe7sUk0XAsvmWm/fS1RXCTMGvLLRK6kMEiXTds4twUsF+dbUbsMC1f0QY/KI87Ln lgNlVTiaD4uZykLSSFu4LQfc3AHsPwE+mqLOS8Bc0vlHNSLTrS0bitPJkxJBiIhtoA N1BMZizPpPA2A== From: Mike Rapoport To: Huacai Chen , WANG Xuerui Cc: Andrew Morton , "Kirill A. Shutemov" , "Kirill A. Shutemov" , Mike Rapoport , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mips@vger.kernel.org Subject: [PATCH] loongarch: drop ranges for definition of ARCH_FORCE_MAX_ORDER Date: Wed, 22 Mar 2023 10:17:27 +0200 Message-Id: <20230322081727.2516291-1-rppt@kernel.org> X-Mailer: git-send-email 2.35.1 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: X-Mailing-List: linux-kernel@vger.kernel.org From: "Mike Rapoport (IBM)" LoongArch 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) --- This applies to akpm/mm-unstable tree arch/loongarch/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index 272a3a12c98d..e1e3a3828962 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -420,11 +420,8 @@ config NODES_SHIFT config ARCH_FORCE_MAX_ORDER int "Maximum zone order" - range 13 63 if PAGE_SIZE_64KB default "13" if PAGE_SIZE_64KB - range 11 63 if PAGE_SIZE_16KB default "11" if PAGE_SIZE_16KB - range 10 63 default "10" help The kernel memory allocator divides physically contiguous memory -- 2.35.1