Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp852614iob; Thu, 12 May 2022 06:08:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsQi/qSE+uHnjUDQS5LIlWG7F+IcFC04m9mNWvPmDr4z4yF0SbFjiJNBUe35q0//uhy7MP X-Received: by 2002:a63:8548:0:b0:3db:2f3:d2fd with SMTP id u69-20020a638548000000b003db02f3d2fdmr9435644pgd.519.1652360924943; Thu, 12 May 2022 06:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652360924; cv=none; d=google.com; s=arc-20160816; b=q5GAWtak2y1YcHN2Uo7tixGRpjghWngESahjyAtB0qDMyam31OioL6WwZgllFJycsa dmX8AoNlrERsisnu2uImDTMo5gpa96nO4kyc7S6dgM9V448On/iG0gliBdFyuhA7ZMPH xt0/xyaf4fLdgtqW2hJzmK02i3esCzEtzMISeRGwHvw2Rl8SfkHrhLKLOpAIPqXyGAuB ugV3Dd5K1b9nyAHAwk5kTrsJFMbd4zHLur6ssiX+Wng52AxfYUwLY0wo0cRv9CDYZoyn cncEYrBJcd+64g1wI2a+c0ZoEZY/VrUeIDdm9S1cfLlBtQu3hOh72Dd0fknt5XAtJl7K YuLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/dqcXTObxTtO1V6/bZade+lRAjqtWrFdg0RrAzpzvMc=; b=tAvELvG23pe6fj73YyClmQYcLXVeqf7MU9iFtHgGPQ+jZ7l1V9rU5+VYXM4bAIDZNj 9nxyroeQ9WEaLFR6lX93L3ADd9Hrp4D8J/j5Jy0Ux+q0G29W9td/wqDF9aqhkZs3iPqW TzQfB5vFoo3NypOyM2FJOA9DMfrutOO870z4F02Fp6L+Qu9YyIbJCx6WEREYC4uEgutN sr2FYDPxIH++XMRjie6sRuUNjOzbaZqsZ3jarCCU+u5SfJWXJqTorA64UXLWkT6VP0f5 DefeneW8/2ma2fWQOrdK8/kbkjiST0+q0KQ1vGmsjyLY3q6nSvr+nYL3obxfq7zAa60U Gnxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=kMzS8vTG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020a17090a740c00b001dc596c0bcfsi4539351pjg.117.2022.05.12.06.08.29; Thu, 12 May 2022 06:08:44 -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=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=kMzS8vTG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353652AbiELMX1 (ORCPT + 99 others); Thu, 12 May 2022 08:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353066AbiELMXX (ORCPT ); Thu, 12 May 2022 08:23:23 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18B881207DC for ; Thu, 12 May 2022 05:23:21 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id c1so4410866qkf.13 for ; Thu, 12 May 2022 05:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/dqcXTObxTtO1V6/bZade+lRAjqtWrFdg0RrAzpzvMc=; b=kMzS8vTGcfljyvBPw+zA5U4fV+xgXwoWkeP5GZCv+jUmhDvG7DmroDuFk9j0B0wi6d 4OWaXMUM/zg1DqHG35P2jypybc3RqSpsGQ9nFhx1iaddGMEtxYA9k5gISq3EtWYescX9 LOf+M8jVzAvQ3EViKcJDXXkw9/Ua151rwj2tMki7WvgU5aYfsd4erpljcuz9daR0W71n MsUbuNWHkONE46UqG5l6O/j7kF/5sRYY7TN8jpd2gdpXLYbUyy28OGetV9xEXj0lf83l 3m5HRjcOCTV4yZC/W/w+spIhqIZAMAD6f4BXnm1yYsvTXQzWEqokuvqhX/vdxis19I7D desg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/dqcXTObxTtO1V6/bZade+lRAjqtWrFdg0RrAzpzvMc=; b=HVuJ0cmr1FZDv7Vsm25VkAcrwCixh86ndj/edgJS01gveq1N/IOlnue5W1IQstNbGn d1OoUvi7neIx6fRHJtJYG2fdNNzVEs83cIR4MckGGvm9s6P9KwV5pNoOB+k63cKry+Tq LYyrhwkjsHLe8am5swE5JAW+yzc4qM6FHvnCyPgrWRFhTuM3OsfmBfTKpouKakhTzIxr YyBzsndooc0EJeR2HdtldnM0BQl6ZmGn5M+rGc1fuJfeSlU3BMcNX+DLBqYD+hkwqBZz i+qhQPvGXNANYtp6ySWqwW839zuLllkt3092dUMR4PEWXadTrEzlOG5xVG83rMd5sb/r W4rQ== X-Gm-Message-State: AOAM530xJLjNOLgJaF4dR3+yvHzz3l/mUGqxsjA+Or/9MoiqR3JJmwXE fuvxyCa7ZW8h5uwC+xK9oYUjaw== X-Received: by 2002:a05:620a:2545:b0:680:a456:ba9e with SMTP id s5-20020a05620a254500b00680a456ba9emr23013666qko.490.1652358200237; Thu, 12 May 2022 05:23:20 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:14fe]) by smtp.gmail.com with ESMTPSA id b8-20020a05620a04e800b0069fc13ce22esm2798975qkh.95.2022.05.12.05.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 05:23:19 -0700 (PDT) Date: Thu, 12 May 2022 08:23:18 -0400 From: Johannes Weiner To: Stephen Rothwell Cc: Andrew Morton , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the mm tree Message-ID: References: <20220512194607.74ee330d@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220512194607.74ee330d@canb.auug.org.au> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Thu, May 12, 2022 at 07:46:07PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the mm tree, today's linux-next build (powerpc allnoconfig, > powerpc ppc44x_defconfig and arm64 defconfig) produced this warning: > > WARNING: unmet direct dependencies detected for ARCH_ENABLE_MEMORY_HOTREMOVE > Depends on [n]: MEMORY_HOTPLUG [=n] > Selected by [y]: > - PPC [=y] > Building: powerpc64 allnoconfig > > WARNING: unmet direct dependencies detected for ARCH_ENABLE_MEMORY_HOTREMOVE > Depends on [n]: MEMORY_HOTPLUG [=n] > Selected by [y]: > - PPC [=y] > > WARNING: unmet direct dependencies detected for ARCH_ENABLE_MEMORY_HOTREMOVE > Depends on [n]: MEMORY_HOTPLUG [=n] > Selected by [y]: > - ARM64 [=y] > > WARNING: unmet direct dependencies detected for ARCH_ENABLE_MEMORY_HOTREMOVE > Depends on [n]: MEMORY_HOTPLUG [=n] > Selected by [y]: > - ARM64 [=y] > > Probably introduced by commit > > 52bc69c65c03 ("mm: Kconfig: group swap, slab, hotplug and thp options into submenus") Sorry about the noise, I must be blind. And x86 does arch/x86/Kconfig: select ARCH_ENABLE_MEMORY_HOTREMOVE if MEMORY_HOTPLUG that's why it didn't trigger for me. This should be the last one, I triple checked the commit. --- From 588d2c5ba815df3b8028e198b7543a5450c24b33 Mon Sep 17 00:00:00 2001 From: Johannes Weiner Date: Thu, 12 May 2022 08:11:17 -0400 Subject: [PATCH] mm: Kconfig: group swap, slab, hotplug and thp options into submenus fix fix WARNING: unmet direct dependencies detected for ARCH_ENABLE_MEMORY_HOTREMOVE Depends on [n]: MEMORY_HOTPLUG [=n] Selected by [y]: - PPC [=y] This is a symbol for the architecture to declare a feature. It mustn't be conditional on user selection. Move it out of 'if MEMORY_HOTPLUG'. Reported-by: Stephen Rothwell Signed-off-by: Johannes Weiner --- mm/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/Kconfig b/mm/Kconfig index c2f4a547ab00..f63d8dc36511 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -436,6 +436,9 @@ config HAVE_BOOTMEM_INFO_NODE config ARCH_ENABLE_MEMORY_HOTPLUG bool +config ARCH_ENABLE_MEMORY_HOTREMOVE + bool + # eventually, we can have this option just 'select SPARSEMEM' menuconfig MEMORY_HOTPLUG bool "Memory hotplug" @@ -462,9 +465,6 @@ config MEMORY_HOTPLUG_DEFAULT_ONLINE Say N here if you want the default policy to keep all hot-plugged memory blocks in 'offline' state. -config ARCH_ENABLE_MEMORY_HOTREMOVE - bool - config MEMORY_HOTREMOVE bool "Allow for memory hot remove" select HAVE_BOOTMEM_INFO_NODE if (X86_64 || PPC64) -- 2.35.3