Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1095326imm; Wed, 26 Sep 2018 11:32:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV629P0m9Q8azdLlqchAwVZvbtPR9atOEDphlfCBXry4c5mEJT6th7xGbAvoOHUcoToDRsncH X-Received: by 2002:a62:48ce:: with SMTP id q75-v6mr7674021pfi.22.1537986767405; Wed, 26 Sep 2018 11:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537986767; cv=none; d=google.com; s=arc-20160816; b=xLVM4OrzZquVgsXinZ0v5fGBn0TfyojD712/u0uWtO9WM4T3YbjQwlTV0ghRtlA/ju z5xRoorpsV/2kTCWmUNVXDc2Yil4ded/tqnzD1GM9gAzaYHGfZBhV/INXv3X/cvaq2xM SorjmWIFq9L47ssGJt1ThncpH7RYaoxh0w5VOsj8kR9BO8Glzu/8DMQ/rWUhSwND8/EV 7mu3UlJ6cw2gSbmE0RlzyEz+Bol55qZI+apRVSuAvrVBc71fp8R6T1F2jtX2TArFjMxz IkT4ymQeeRy6SgDcuvbsOq4+aluPgHl7aLTf2KBUNnkbWTeGMOleScSNgz1bW5z5h0zU 8jhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=05rUHoCJKsj0BX+WZyMpaXHEhhRUpoS94hbu5cr6meE=; b=oxjEuZlgnVcdJ0afBiRcECIDPKJAl170xztXdnzbW9HXhmtO4+baBfw2+X1LrK11uE OOJIIzTnVHIuRtMrjtvabt8jNhgMsuIpx8j3odCSG6htsinXHnKcxWgHB6m90X01jiOJ nVBjIqNpUsJV5hdPuLlseVdvuqsV9WSHxbMfgUgdvXMrt8k3NpbGk+asL6BfIjiQhW9a jmyELVcLi72bheJ2SPWrVZmfjUnjg0QmQUcFBWq1F1HujsxLp5BWfv72jpWFKzaBfur2 UbCoRdaiioY0MMljpsh9wgDe1KKdRKs3LfL3zApPgNOQGtN4YIPEBT0P402TUpWKFUwg 8RyQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b34-v6si6093329plc.170.2018.09.26.11.32.32; Wed, 26 Sep 2018 11:32:47 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728762AbeI0Aqb (ORCPT + 99 others); Wed, 26 Sep 2018 20:46:31 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:39520 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbeI0Aqb (ORCPT ); Wed, 26 Sep 2018 20:46:31 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8QIUDRB024755 for ; Wed, 26 Sep 2018 14:32:16 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2mreu4hv2r-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 26 Sep 2018 14:32:15 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 26 Sep 2018 19:32:12 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 26 Sep 2018 19:32:00 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8QIVxwW65994892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 26 Sep 2018 18:31:59 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 826B4A405D; Wed, 26 Sep 2018 21:31:40 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0C9ACA4040; Wed, 26 Sep 2018 21:31:36 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.204.125]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 26 Sep 2018 21:31:35 +0100 (BST) Date: Wed, 26 Sep 2018 21:31:53 +0300 From: Mike Rapoport To: Alexander Duyck Cc: linux-mm , Andrew Morton , Catalin Marinas , chris@zankel.net, David Miller , Geert Uytterhoeven , green.hu@gmail.com, Greg KH , gxt@pku.edu.cn, Ingo Molnar , jejb@parisc-linux.org, jonas@southpole.se, Jonathan Corbet , lftan@altera.com, msalter@redhat.com, Martin Schwidefsky , mattst88@gmail.com, mpe@ellerman.id.au, Michal Hocko , monstr@monstr.eu, palmer@sifive.com, paul.burton@mips.com, rkuo@codeaurora.org, richard@nod.at, dalias@libc.org, Russell King - ARM Linux , fancer.lancer@gmail.com, Thomas Gleixner , Tony Luck , vgupta@synopsys.com, Yoshinori Sato , linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, LKML , linux-m68k@lists.linux-m68k.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-um@lists.infradead.org, nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, sparclinux@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp Subject: Re: [PATCH 03/30] mm: remove CONFIG_HAVE_MEMBLOCK References: <1536927045-23536-1-git-send-email-rppt@linux.vnet.ibm.com> <1536927045-23536-4-git-send-email-rppt@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18092618-0020-0000-0000-000002CBF8A0 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18092618-0021-0000-0000-0000211A1CA6 Message-Id: <20180926183152.GA4597@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-26_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809260172 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 26, 2018 at 09:58:41AM -0700, Alexander Duyck wrote: > On Fri, Sep 14, 2018 at 5:11 AM Mike Rapoport wrote: > > > > All architecures use memblock for early memory management. There is no need > > for the CONFIG_HAVE_MEMBLOCK configuration option. > > > > Signed-off-by: Mike Rapoport > > > > > diff --git a/include/linux/memblock.h b/include/linux/memblock.h > > index 5169205..4ae91fc 100644 > > --- a/include/linux/memblock.h > > +++ b/include/linux/memblock.h > > @@ -2,7 +2,6 @@ > > #define _LINUX_MEMBLOCK_H > > #ifdef __KERNEL__ > > > > -#ifdef CONFIG_HAVE_MEMBLOCK > > /* > > * Logical memory blocks. > > * > > @@ -460,7 +459,6 @@ static inline phys_addr_t memblock_alloc(phys_addr_t size, phys_addr_t align) > > { > > return 0; > > } > > -#endif /* CONFIG_HAVE_MEMBLOCK */ > > > > #endif /* __KERNEL__ */ > > There was an #else above this section and I believe it and the code > after it needs to be stripped as well. Right, I've already sent the fix [1] and it's in mmots. [1] https://lkml.org/lkml/2018/9/19/416 -- Sincerely yours, Mike.