Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1331718imm; Fri, 15 Jun 2018 15:26:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKveyDtc+EMlsEktL+iHmGMMZmLGAEkZKv6wGROHAt72a/T1SyQNwF0OL0BnFu1pKBBjeyK X-Received: by 2002:a17:902:4545:: with SMTP id m63-v6mr4108678pld.268.1529101609388; Fri, 15 Jun 2018 15:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529101609; cv=none; d=google.com; s=arc-20160816; b=iivkpvMOxE6iTY2F3EAalAgxGoMPCjcaHbJHBgxyW1QatAQWNHfKYHrtzBgSpav9m3 qm8PNM/r6+uCPqH/ndRCkTA1GE41oy9d5W2wKp13IRVrHguj/keIRAb5+jPx48RYpmrj oG8u31e0DYQ0S7zn6+6ncbgiYbtlzLjwoQPqNHJGTxUZR86f6L4kXYnD+wae5p28vFUg GCtjLO5B/9A5QG+nBP3eDQzaTCwzHNFFdFBZ9e5zWhpRL4S3AY5HLrVE9qmSLeARHRux EKXBQQYY6Kn9aOJbpcjpDvMcFOn51oQNxjyKJoUpJGkWF3CY1+ckU92ViN7H1b+BMQpE fGqg== 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=AQtI9HCegF1HRxom7L4r4ihjfxjqVJW6f7HX4X+3x08=; b=uKJm/X8qttuiL+kaOobJ3jyaQmbXw6FpTnYp5a9hZrQ574kqsi/+b6cnwXDDAZ6WJ2 mqzVLPRNFzAoJQGy7YgmmSTXfGis01ztW5c3zEGo6Elz4mrnKXT8/21L2os5+qx8Vj7J OuaSel3JnNO7A5hCz5q1P6DyaRvjPBQRlyM1EEWSguwNEQC7+nnTJQN6K23MyLjwzOTY DrRDgToVWHR+Ztqfuu1KJiy61Yfcaf44U7NTmHD+SI7dVS/wqAw2WxQV0sdjLV/UBGHO hG4SrsSfO+bi1P9orjdwrNhQXRUdo+zFLQFofAr//mt3LJStVuxN2dL+yHFQmvP0T7SW 8rbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bRRnwyVJ; 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 y124-v6si7263534pgb.61.2018.06.15.15.26.34; Fri, 15 Jun 2018 15:26:49 -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=bRRnwyVJ; 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 S1756713AbeFOW0E (ORCPT + 99 others); Fri, 15 Jun 2018 18:26:04 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:40882 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756429AbeFOW0D (ORCPT ); Fri, 15 Jun 2018 18:26:03 -0400 Received: by mail-qt0-f196.google.com with SMTP id q6-v6so10492629qtn.7 for ; Fri, 15 Jun 2018 15:26:03 -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=AQtI9HCegF1HRxom7L4r4ihjfxjqVJW6f7HX4X+3x08=; b=bRRnwyVJUtbYpw3fRV7vmBdhdEXzrWVorp16WNGZ2H33G+6eC0h+Zda+qDaFe3AYya X468uTuCX4W4XyoIlK1akgDPlZlggTpklnh2Vdjf0SFTFKuoDBHuw/ZmSGkEeRuGH3/k cOc+5OvabLZI1nzenf5yzTe+LtoaWvh3aLdnDGj1kDk789InJuBPdyp19wNd4P0yQCEc eGf33Qhkyb8g/C2w3xRc4bYYLlVJwckIYmuoEuXGiI1Se1DiiO47G7Wm382Tzla1YE3t xvMgp1ycQFTNwj+58zAifPy8+zhlQW1j6V8db3ulwzqgTQxREPTd893F339T0Wg67OgN 4z2g== 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=AQtI9HCegF1HRxom7L4r4ihjfxjqVJW6f7HX4X+3x08=; b=YyPbtz0X6D7MuQLoN8MIKB63DhT3vMcEK1DpQcVYF3vGArcTzvW7E0SGD+Jnxm0wz5 hcc1VKKBWtBxl6ygHc/7QFij5zNbmzBgigl5KC3wWxnAGDFEJu1s7FwYzlpTPF3WxJVL GSeVpLlHWYMKyrA91/LSEi6uYEAH+SzOQFb9Lt7diMv8ueyrh0XrEUjuZp/eYlksRaeX ypmjVOEhNhAV42ySjqB+GkRnV44/laXoVY4Nxg3IaYIhd1m7D8A6VXnD559rYJbzpJIe 5iSw+RPUkRejvnWw6LBY0EXdsm6cESvGaIwiZw/wkp4AKNJPZLspgwFXfsLtx3jI6pCj k51w== X-Gm-Message-State: APt69E3zY7zQf94P75TymcC3G0NTO8BLlXoJESgrjKuhwHbp9ywt3w7y 1GRczu6jUc3z8ISkHVZbZMSDLyGm3v10pEmP5F8= X-Received: by 2002:aed:3e51:: with SMTP id m17-v6mr3262971qtf.283.1529101562629; Fri, 15 Jun 2018 15:26:02 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:7190:0:0:0:0:0 with HTTP; Fri, 15 Jun 2018 15:26:01 -0700 (PDT) In-Reply-To: <20180615121716.37fb93385825b0b2f59240cc@linux-foundation.org> References: <20180606194144.16990-1-malat@debian.org> <20180615121716.37fb93385825b0b2f59240cc@linux-foundation.org> From: Tony Luck Date: Fri, 15 Jun 2018 15:26:01 -0700 Message-ID: Subject: Re: [PATCH] mm/memblock: add missing include To: Andrew Morton Cc: Mathieu Malaterre , 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 Fri, Jun 15, 2018 at 12:17 PM, Andrew Morton wrote: > Huh. How did that ever work. I guess it's either this: > > --- a/mm/Makefile~a > +++ a/mm/Makefile > @@ -45,6 +45,7 @@ obj-y += init-mm.o > > ifdef CONFIG_NO_BOOTMEM > obj-y += nobootmem.o > + obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o > else > obj-y += bootmem.o > endif > @@ -53,7 +54,6 @@ obj-$(CONFIG_ADVISE_SYSCALLS) += fadvise > ifdef CONFIG_MMU > obj-$(CONFIG_ADVISE_SYSCALLS) += madvise.o > endif > -obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o > > obj-$(CONFIG_SWAP) += page_io.o swap_state.o swapfile.o swap_slots.o > obj-$(CONFIG_FRONTSWAP) += frontswap.o That option gave me a boatload of undefined symbols. > or this: > > --- a/include/linux/bootmem.h~a > +++ a/include/linux/bootmem.h > @@ -154,7 +154,7 @@ extern void *__alloc_bootmem_low_node(pg > __alloc_bootmem_low_node(pgdat, x, PAGE_SIZE, 0) > > > -#if defined(CONFIG_HAVE_MEMBLOCK) && defined(CONFIG_NO_BOOTMEM) > +#if defined(CONFIG_HAVE_MEMBLOCK) > > /* FIXME: use MEMBLOCK_ALLOC_* variants here */ > #define BOOTMEM_ALLOC_ACCESSIBLE 0 That compiles cleanly, but didn't boot: [] ia64_fault+0xf0/0xe00 sp=e0000004fb37f8a0 bsp=e0000004fb371438 [] ia64_leave_kernel+0x0/0x270 sp=e0000004fb37fba0 bsp=e0000004fb371438 hid-generic 0003:0624:0200.0001: input: USB HID v1.10 Mouse [Avocent USB_AMIQ] on usb-0000:00:1d.0-2/input1 [] pcpu_find_block_fit+0x20/0x300 sp=e0000004fb37fd70 bsp=e0000004fb3713a8 [] pcpu_alloc+0x630/0xc40 sp=e0000004fb37fd90 bsp=e0000004fb371308 input: Avocent USB_AMIQ as /devices/pci0000:00/0000:00:1d.0/usb4/4-2/4-2:1.0/0003:0624:0200.0002/input/input3 [] __alloc_percpu+0x40/0x60 sp=e0000004fb37fda0 bsp=e0000004fb3712e0 [] alloc_vfsmnt+0x1c0/0x4e0 sp=e0000004fb37fda0 bsp=e0000004fb371280 [] vfs_kern_mount+0x30/0x2a0 sp=e0000004fb37fdf0 bsp=e0000004fb371238 > and I'm not sure which. I think I'll just revert $subject for now. Reverting is a good short term fix. -Tony