From patchwork Tue Oct 15 05:15:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, Ying" X-Patchwork-Id: 13835735 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 AF0D4CFC267 for ; Tue, 15 Oct 2024 05:16:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D2C286B0098; Tue, 15 Oct 2024 01:16:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CDBB66B009A; Tue, 15 Oct 2024 01:16:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BA31B6B009C; Tue, 15 Oct 2024 01:16:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 9C2DD6B0098 for ; Tue, 15 Oct 2024 01:16:15 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 64C1BA138F for ; Tue, 15 Oct 2024 05:15:59 +0000 (UTC) X-FDA: 82674675300.22.9A7C9CF Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by imf02.hostedemail.com (Postfix) with ESMTP id 87B8380004 for ; Tue, 15 Oct 2024 05:15:59 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=cIh4R0op; spf=pass (imf02.hostedemail.com: domain of ying.huang@intel.com designates 192.198.163.14 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728969326; 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:references:dkim-signature; bh=gg+mci3L0zPI6eQaWH9eaVdhTQkXBVyh5CcrDQVlxsU=; b=CjBCInr39Boq/U1Zkbn5MD9s3PIrAnszSc2OtW6QrJHAg00lqoUUogZ61Bo/KnuZ6ynfy2 0L+/bFMAS4HfaeQbnBeuyQjZ6xsGjUjsWxDh0odmNTVMhIbxIuPTUhs2EJhmYqVevXATMD m9vgHkiDe1TUc7/Pt/CUFf14dN3kxEQ= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=cIh4R0op; spf=pass (imf02.hostedemail.com: domain of ying.huang@intel.com designates 192.198.163.14 as permitted sender) smtp.mailfrom=ying.huang@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728969326; a=rsa-sha256; cv=none; b=BwpyR7OaK98Swbwa7gb7+4RQSOl8CV5vGJtB75jL8S+dTfBUVp+3J8FpIsS57wltI9LVOb dVmwxX2ve1H8OIJD+BVXLK/9GqIDGWbPZRBrureYZ09rGtU0/fpUohjCRJqbi4BmpoU+Tu P8BJ1dQMbvayE/kHIfO9Y2WTnnExy0Y= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728969373; x=1760505373; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=r+ohFbZ+3OT4yZB1iRHQ2xYn1IwOo35YuWlS7r/hjN8=; b=cIh4R0op/JJp2pXl6MaFZlGJZVdpmLvi6F6KHQDhA0Y9Qp5hUgFRDY/0 EBKGG65+s+QCysfZYcvXW4y0ravC9Km47DU1gMbz8URLRJivylcJVWkOP dT8rXMhYaUxMIetaopPrvwAQ4Q6Dmpt8fA4b9gBQQ41GciQs3LDya5nm6 OOCvHGPnEV1b/u6+ONXtwppcaQvUywGTatUxCtaJNnD+QXBEuyONCPFl6 SwcKGtfJy42p4Ct0COlJEIN65+MPbKuwGc4tBmqpJ6YGlnfEUQ/Rc3A4n 4vAmT41NszgoZ+EhfQqabfoL0fUedpbWQVr9TYaK8FhqOgGkaYCp49tfD g==; X-CSE-ConnectionGUID: Hd2D84M3QNKn9jghck2FSg== X-CSE-MsgGUID: MryXkafkT4mRdwGe2wZtVg== X-IronPort-AV: E=McAfee;i="6700,10204,11225"; a="28532697" X-IronPort-AV: E=Sophos;i="6.11,204,1725346800"; d="scan'208";a="28532697" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2024 22:16:11 -0700 X-CSE-ConnectionGUID: k2vFIqMGRRWlHs3opiqN3w== X-CSE-MsgGUID: bd2Axd9TRtmrJVUpNER2xQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,204,1725346800"; d="scan'208";a="78121845" Received: from yhuang6-mobl2.sh.intel.com ([10.238.3.32]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2024 22:16:08 -0700 From: Huang Ying To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Huang Ying , Guenter Roeck , Nathan Chancellor , Arnd Bergmann , Dan Williams , David Hildenbrand , Jonathan Cameron Subject: [PATCH] resource: Remove dependency on SPARSEMEM from GET_FREE_REGION Date: Tue, 15 Oct 2024 13:15:54 +0800 Message-Id: <20241015051554.294734-1-ying.huang@intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: cw7dtd1ez3a7khepfouig3gai6noeki6 X-Rspamd-Queue-Id: 87B8380004 X-Rspamd-Server: rspam11 X-HE-Tag: 1728969359-314979 X-HE-Meta: U2FsdGVkX19Hx0DfNkxF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+qrKWk1Wb6eRyG/HVnMcVapLP0ShdcOu6zmqPXGgyjwsVN00MVm7njw07PQlbb+j/fcGlY8DCLI2myUjBidwaH25Yrwqq9j/+uHr7OTiON/L5+5iF0iS5klgedcLAagA57yAfxF6AFF//BIrHLFArfr1D3YySYeJS/JHJ7f8USfdYdWq1SxcFV1wpwJa9W7eCgD1OERHUUhZCWPhYbK5tcgw89qN9Lxj48IMxX/s/brDx 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: List-Subscribe: List-Unsubscribe: We want to use the functions configured via GET_FREE_REGION in resource kunit tests. However, GET_FREE_REGION depends on SPARSEMEM. This makes resource kunit tests cannot be built on some architectures lacking SPARSEMEM. In fact, these functions doesn't depend on SPARSEMEM now. So, remove dependency on SPARSEMEM from GET_FREE_REGION. Link: https://lore.kernel.org/lkml/20240922225041.603186-1-linux@roeck-us.net/ Signed-off-by: "Huang, Ying" Tested-by: Guenter Roeck Cc: Nathan Chancellor Cc: Arnd Bergmann Cc: Dan Williams Cc: David Hildenbrand Cc: Jonathan Cameron --- mm/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index 4c9f5ea13271..33fa51d608dc 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -1085,7 +1085,6 @@ config HMM_MIRROR depends on MMU config GET_FREE_REGION - depends on SPARSEMEM bool config DEVICE_PRIVATE