Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1696148ima; Sun, 21 Oct 2018 18:37:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV63h1PIz4MzvK/SOKlcuvJ0EQ3mcc9FicDsx/XRobSYTvNdJus8praMxAGdEG5I5dwibNn0u X-Received: by 2002:a63:7506:: with SMTP id q6-v6mr40694495pgc.137.1540172257772; Sun, 21 Oct 2018 18:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540172257; cv=none; d=google.com; s=arc-20160816; b=fkm/QkQmOHUl2K8SD86XFTpWW5/RJ8zkGWEZc/1mGphm/ycZTqzLxZ5/LYQy7t2ZEm ZneeDVpSipf9xFuwzjOzyBkJ0RD2to5GtggZbJ8c3CNylIk08VgU59o8qYUxYluCGBM6 X6lKLKKW1oP9bEr7/DEiiYWbeCYv+YMmtYsG3Jt7tR67QBa1qbAaruZOXE0C9pVOPqfB Bi22QKesNZJFbkzKsq30oSpIwHXr9IGqrtdI8LypzhuaWevG0NpA653pJ1wRC1U+wMhb DMv+FQkkoNGbfva1+u+spyaIrC5OJp5iuWvIHpisN3lywL0/pjtsAiIs1Iv07V8p1SRt tSCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=2STM3QACkcoRYLYc6fyQbtAZ2peEJasfGTy1/bhwUO4=; b=eoDsHmWsTxXB4LVsCP50MpVx+ASUJZ43vcv731JmDiqQN+fN6nEb+yxklu55Ylbx1F P8A20H5uEGlfwuZe9W7H0NM6TsOKwuN1J0USRTbVp/l4hTEQwZRPLQ506iTZW/oZY2p1 bFpGCsyUR0Scf2QTsPb8N2LDalKkckPQ0zyJloufjVpzxYZCtI2+lLksPS9MA6bGe9zI sn840gufdsRq1xBRKqD3WNkK08Z0yQTCwztHd7I/lsddJh6S7d9chnrCR07+qGyGcD1i xPFJv+FgoeMA9v8/GdrwsrYDnaxHxmuyH/zX6lINhBrr1D4EvqCGit31J1BvQ0Ajkxnf oHoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AT6ysxuB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10-v6si31800128pgm.374.2018.10.21.18.37.22; Sun, 21 Oct 2018 18:37:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AT6ysxuB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727026AbeJVJvj (ORCPT + 99 others); Mon, 22 Oct 2018 05:51:39 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:45584 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbeJVJvj (ORCPT ); Mon, 22 Oct 2018 05:51:39 -0400 Received: by mail-ed1-f68.google.com with SMTP id t10-v6so3590568eds.12 for ; Sun, 21 Oct 2018 18:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2STM3QACkcoRYLYc6fyQbtAZ2peEJasfGTy1/bhwUO4=; b=AT6ysxuBoX4f1P1KMN5+SYXzfju75m9+kIPcd8xfcngYDlKs/s1I2lRqb8RDcp+bmD Owceb2z4CLC3O7wtowboN2+vS07lmlOoD8xWXCs3AYKoH4JUAIN9gVGFyBTN4Gp9DQ3p NzDsEs+o2X791U0N6ise0TW29YcHOMhUwWk0K/zR1MlgjNdFhQOYUGGJKn/sgEHX+VXh 6KUXLC0/AuCZqe+TehmWhGS/B19z4U75GIWo7lDeKUDYd8DKgN5sxHtHAK9QMtD2bIbm 1Wjf0E5VhTEzj/oOZk0y7DhxWNdmMujAuWJG7GxtRayuWXHmDcOVk17Wf5nN/UbULjle zI0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=2STM3QACkcoRYLYc6fyQbtAZ2peEJasfGTy1/bhwUO4=; b=I5+DNGzy9PU/A3mX7YvpLqKXo4EijSG8yx9SKxMaEQ4V8qmsPRQNFrBd4JDEnogVAO 6DOSTARUDNEtLtjJgdYYLUlcdyoBIOwdSGWSz32/Utbj4SB7Th5eSmrP/icau6CciCpe Wf7emA17Ad8LQTYSds16onXKhbyek91eK6YIqLMa4RwCc0E3lkOXkHQx4h8Vy/2OREvO 9VtHDPWiYmyBKikL3egkDXXaJdsBejhH8MkzA2kXeZeIu9FqbFjvVllykVySUZE8rM/R zI7lJT0H5YpcFWXaJv3P8MIypY5XqrAAcNoUzqgR7hFvAjc5DubXpIvQPiIBlAhTCxiT d1/Q== X-Gm-Message-State: ABuFfoi1lzJhLapGjbj0hNebj45BXSvlwhqARpXybLefUVGVFGk8EB7z QYB+Gc3xs1N+3STsmYRpqSo= X-Received: by 2002:a17:906:c2c6:: with SMTP id ch6-v6mr1969921ejb.9.1540172116830; Sun, 21 Oct 2018 18:35:16 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id gt25-v6sm6445070ejb.33.2018.10.21.18.35.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Oct 2018 18:35:15 -0700 (PDT) Date: Mon, 22 Oct 2018 01:35:15 +0000 From: Wei Yang To: Mike Rapoport Cc: Wei Yang , Mike Rapoport , Andrew Morton , Alexander Duyck , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] memblock: remove stale #else and the code it protects Message-ID: <20181022013515.frvzqvccrrp3qiw4@master> Reply-To: Wei Yang References: <1538067825-24835-1-git-send-email-rppt@linux.vnet.ibm.com> <20181019081729.klvckcytnhheaian@master> <6EEAA7EC-75B7-4899-A562-35A58FC037E6@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6EEAA7EC-75B7-4899-A562-35A58FC037E6@linux.ibm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 21, 2018 at 10:30:16AM +0300, Mike Rapoport wrote: > > >On October 19, 2018 11:17:30 AM GMT+03:00, Wei Yang wrote: >>Which tree it applies? > >To mmotm of the end of September. > I may lost some background of this change. The file I am looking at is https://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git/tree/include/linux/memblock.h which has CONFIG_HAVE_MEMBLOCK in line 5. >>On Thu, Sep 27, 2018 at 08:03:45PM +0300, Mike Rapoport wrote: >>>During removal of HAVE_MEMBLOCK definition, the #else clause of the >>> >>> #ifdef CONFIG_HAVE_MEMBLOCK >>> ... >>> #else >>> ... >>> #endif >>> >>>conditional was not removed. >>> >>>Remove it now. >>> >>>Signed-off-by: Mike Rapoport >>>Reported-by: Alexander Duyck >>>Cc: Michal Hocko >>>--- >>> include/linux/memblock.h | 5 ----- >>> 1 file changed, 5 deletions(-) >>> >>>diff --git a/include/linux/memblock.h b/include/linux/memblock.h >>>index d3bc270..d4d0e01 100644 >>>--- a/include/linux/memblock.h >>>+++ b/include/linux/memblock.h >>>@@ -597,11 +597,6 @@ static inline void early_memtest(phys_addr_t >>start, phys_addr_t end) >>> { >>> } >>> #endif >>>-#else >>>-static inline phys_addr_t memblock_alloc(phys_addr_t size, >>phys_addr_t align) >>>-{ >>>- return 0; >>>-} >>> And in that file, here is memblock_reserved_memory_within. I guess this is not the version you are trying to fix. BTW, if you could put the commit SHA which removes the CONFIG_HAVE_MEMBLOCK, it would be easier for others to catch up. >>> #endif /* __KERNEL__ */ >>> >>>-- >>>2.7.4 > >-- >Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Wei Yang Help you, Help me