Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3221929imm; Fri, 20 Jul 2018 12:16:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdDT452NuVihRTEYFl7UqUMeGGEmv3319dEtWIft6qxCO16cgOntqJvb0Oj97WKNe+lP4JM X-Received: by 2002:a17:902:a5:: with SMTP id a34-v6mr3348596pla.60.1532114214520; Fri, 20 Jul 2018 12:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532114214; cv=none; d=google.com; s=arc-20160816; b=0XcCJbOSDGVDfbTEe//61tFC8L1xBlQjahFTqwu4vbe36+nhy5e3yPqBaO89X4jMDv lo00f1/Zo49J1C4fuOxkQj2cPpNyBJbvhSwOC3pXRpTo8vx/wQs2jpJJGKN/t2XHTiwI 9y0a9IA3MC5VvqDutXSAa9P8jvDnGVmPY1gc3bpicTSWtuXALui0wtnFlveWJXTV1H5u kjTPZvN/595hPYeJLbh2nCixI0AdEWRK4qS3KgtS+wPPyM3gqRky0K3Txvm4RL+MhJWU A0aQco9DYboQ8mGxIcTvsPaMKyFtIXK0MJ9KirBNQznppS7WckpZb9AdtmY/YIsjsuNF 9acg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=K5aKN1twt3OsHprz478h6YmMek7/P6D1hjsb8sftGjg=; b=ARf3zekC6KxiCeVdggjDrccAnlhk/D0cYmmwhQ7HMBEuhgxl/jSSuJn0TezSR9yD65 MFLHoWbMsKaL5Jamm4Y4jU8qrjXdkb7ySq5S7gT14hDEza0cM8GElOAurCzDyPYA8KX3 1vqIRJ7oU90CMfd+cG/Mwlt3geYU5EVhWypaKxlsPNndTkruf2gVCSg0UxXpKPXqA7Ji XU2spk5c/lQc2IkIVK21dXLqq6V5luONOwNWs/utcNGUO5OFVgPmN1SQTQxQsk0SYUZ+ pPqdpNWseWkZUMqBOEZxppAnML5GrcRcOjtzayEq/cvUFEajAtYSmzVSWxq+sd+QZOty qMbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fkHRZxAJ; 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 d30-v6si2230585pla.110.2018.07.20.12.16.39; Fri, 20 Jul 2018 12:16:54 -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=fkHRZxAJ; 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 S2388414AbeGTUFo (ORCPT + 99 others); Fri, 20 Jul 2018 16:05:44 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:40069 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388373AbeGTUFo (ORCPT ); Fri, 20 Jul 2018 16:05:44 -0400 Received: by mail-qt0-f194.google.com with SMTP id h4-v6so11233512qtj.7 for ; Fri, 20 Jul 2018 12:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=K5aKN1twt3OsHprz478h6YmMek7/P6D1hjsb8sftGjg=; b=fkHRZxAJwWg+oFBuCC7yQyngrM6nNSwq8paCYPH2BMONgp5GvyxJB0iQaJicqPmykC fakcb/UR8dwwf0/bG/HYwYGx6Ei39O8iRnXF5md0JQ/ZB9QhQa5W8roDCdLdfjuaNA4C FMrz5T5FA9SzlD9c4mAtX2GDB++ePi46VgRxcC5MS9s82QpkjsecrRWhv+/FXQTsbhCp W7plJdbSNWoOa1ran80fO97EuIS5IyLDGA4mVFzBLks8l4NbuM7UiH6N658kbbBHaqCU g76LAnLstoDfSDlqiToiVggy8B3xnNGj+Bn+CEvsw9oVU0ZfZnMYiDXTspAezwFV0PZ4 kjkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=K5aKN1twt3OsHprz478h6YmMek7/P6D1hjsb8sftGjg=; b=uN9hHXjRfrJ4eFFPUZxHtoANrswpi1S/Q2ibCv7ptUdos8cjwHgMsfLokosITe0O6N 6+qFP+MnzBVRYd4QOOnMGerRECbDGdQo2hyFZ8k2SP2n6OkFDG4P6H11AqiEqCn4JUpb XnYMtF+SjK4Wm38k/knDHbE3ugS9hPmhFkC8so4A/woM0qIHD+jNzjmWkPBwI7MlKcAb LzZhZeX6g1rdJ7N+btYbR4e4ey71wb4N7NhxUI/ql0CBUb7fG+7LWkaMb1XV5ngVSz/4 SA3Eqnce7rduv68rL0BQjWCDGwfTusnvn1Ll/LS8X402EosB3JFSS/Ry7LR7ft7l8TMI 4lIg== X-Gm-Message-State: AOUpUlFI4a2F+DtZyquOkDMVKFqcjdJKvk5SRf+aHRpsM/DFwBlcCfdb vy1MIw00oylcFjJAy+fOgl2afrQy4VaOd932Dqo= X-Received: by 2002:ac8:8f0:: with SMTP id y45-v6mr3267317qth.408.1532114165886; Fri, 20 Jul 2018 12:16:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:3fc6:0:0:0:0:0 with HTTP; Fri, 20 Jul 2018 12:16:05 -0700 (PDT) In-Reply-To: <20180626184422.24974-1-malat@debian.org> References: <20180625171513.31845-1-malat@debian.org> <20180626184422.24974-1-malat@debian.org> From: Tony Luck Date: Fri, 20 Jul 2018 12:16:05 -0700 Message-ID: Subject: Re: [PATCH v3] mm/memblock: add missing include To: Mathieu Malaterre Cc: Andrew Morton , Michal Hocko , Michal Hocko , Pavel Tatashin , Steven Sistare , Daniel Jordan , Daniel Vacek , Stefan Agner , Joe Perches , Andy Shevchenko , linux-mm@kvack.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 26, 2018 at 11:44 AM, Mathieu Malaterre wrote: > Because Makefile already does: > > obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o > > The #ifdef has been simplified from: > > #if defined(CONFIG_HAVE_MEMBLOCK) && defined(CONFIG_NO_BOOTMEM) > > to simply: > > #if defined(CONFIG_NO_BOOTMEM) Is this sitting in a queue somewhere ready to go to Linus? I don't see it upstream yet. > > Suggested-by: Tony Luck > Suggested-by: Michal Hocko > Acked-by: Michal Hocko > Signed-off-by: Mathieu Malaterre > --- > v3: Add missing reference to commit 6cc22dc08a24 > v2: Simplify #ifdef > > mm/memblock.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/mm/memblock.c b/mm/memblock.c > index 03d48d8835ba..611a970ac902 100644 > --- a/mm/memblock.c > +++ b/mm/memblock.c > @@ -20,6 +20,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -1224,6 +1225,7 @@ phys_addr_t __init memblock_alloc_try_nid(phys_addr_t size, phys_addr_t align, i > return memblock_alloc_base(size, align, MEMBLOCK_ALLOC_ACCESSIBLE); > } > > +#if defined(CONFIG_NO_BOOTMEM) > /** > * memblock_virt_alloc_internal - allocate boot memory block > * @size: size of memory block to be allocated in bytes > @@ -1431,6 +1433,7 @@ void * __init memblock_virt_alloc_try_nid( > (u64)max_addr); > return NULL; > } > +#endif > > /** > * __memblock_free_early - free boot memory block > -- > 2.11.0 >