Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3425049ybz; Mon, 20 Apr 2020 02:28:37 -0700 (PDT) X-Google-Smtp-Source: APiQypLkwfbkMvvhdOziK3KY3ZgilTjF81tx9FXv6ZtgzDh09yw8mCUF1luzSQhTVJ6wy9kv4t4N X-Received: by 2002:a05:6402:1297:: with SMTP id w23mr4529318edv.151.1587374917649; Mon, 20 Apr 2020 02:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587374917; cv=none; d=google.com; s=arc-20160816; b=Ca/i3ACNaJBJ/szIhbKSZAiBgEQluaqcZLpdWhIK4Mn7zpNfihNVSy3pdAszZeH1Sm bpCk88MgNTeloZcZBzAbkmOATUDG2ShoHByS9ivoyGiRbrSr9QlvgkvPghtdOuYjupqu 0MiVk3lJ+WKchE1b+J347DGzv28dZpV/Fw9WXUxNLZY2rP/lDkVinmXIpPlkfOv28NRB WcaKuqPQ1PDx2vF6XU6Fg9F2J8E9DDVKxNgayQY4cPw/yUnWrVq1iM4P+m7kxImYiZsh /GivRanhWnIMk8frwx7LEHmKynm+PGxqGKeLEjZB79IZ0ClNYk9lo+Ye3R8F/qwf/YKJ wOtQ== 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 :in-reply-to:references:mime-version; bh=vNmHcf3myzOB2u9F8M3SMwCNsUNlPCLfd3zAQRCW16Q=; b=WkXEMGLhDFd8cLlGELWUu4Evkke+yWoAFNQRrdP1o+cC86vbMOtL29q4Ap0nzp5GLV gve0B3pNBXG2GQ856mOiuu7XU9kCYTe5g05iRmTeoeBqSSsXfZSDvLEMbvxxIXixKSEb IwERexJW+P2pUlx/UeJN77uS5AaEqD85+XQKfsbmNpqCazUuXelBbaDLfr+dJVjKhRtZ jXnrnkbHcJF/QHXylf7SDx34jbM9aAHReh000sd0ch2ydxi8v+fKsZ0f8+aeXYrpsA2m /nSr6stp4Qgs+c+508+QygDeUhvKSpi1veBE+MfJegahg0xZszOT4rHv2gAbUzm3Agqh gjhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si190315ejq.364.2020.04.20.02.28.14; Mon, 20 Apr 2020 02:28:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726049AbgDTJ0c (ORCPT + 99 others); Mon, 20 Apr 2020 05:26:32 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:40954 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbgDTJ0b (ORCPT ); Mon, 20 Apr 2020 05:26:31 -0400 Received: by mail-ot1-f65.google.com with SMTP id i27so7476315ota.7; Mon, 20 Apr 2020 02:26:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vNmHcf3myzOB2u9F8M3SMwCNsUNlPCLfd3zAQRCW16Q=; b=tsioWdIjfcNyzdtGi3K073n0mhYPY+kUfkA7zlx4z9YyUujyKFRAuEkLjfmt7sPW5/ XyUUt+0UmTrle2acO3WkxLxyi/9jOVX2cojs5s2ScVrsYf86YQNAiZ8QhuP4EHcTgoeO n797uzhyL/7TGsHl5hrE6lPqKOVkE54qXywflKLMBgXMOwCr2rY1CsOiwcaK6jAs3E/L neL0a+7hjpNo0ORQeDYzTQ826wJqwLiZap0m27BuUsi4zJJ8EjXbHzmHU8Yk5vA+Xaon 2zp1ZFHhxnkLovN+O1hThb+9rKm3kLb1K0eNkjMdHyQzIMpPv1LXgf8uDxnV1CaSv8nj C1xQ== X-Gm-Message-State: AGi0PuYhD4Rw5340fIWGN7gF6K/yqGg+7Rnee41H5qk+erFWZfUSGK3e iF7bpLAflzmOcnZXx2B1qS8olXNChhJfi3npwAU= X-Received: by 2002:a05:6830:3104:: with SMTP id b4mr5221130ots.250.1587374790460; Mon, 20 Apr 2020 02:26:30 -0700 (PDT) MIME-Version: 1.0 References: <20200414131348.444715-1-hch@lst.de> <20200414131348.444715-27-hch@lst.de> In-Reply-To: <20200414131348.444715-27-hch@lst.de> From: Geert Uytterhoeven Date: Mon, 20 Apr 2020 11:26:19 +0200 Message-ID: Subject: Re: [PATCH 26/29] mm: remove vmalloc_user_node_flags To: Christoph Hellwig Cc: Andrew Morton , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , "the arch/x86 maintainers" , David Airlie , Daniel Vetter , Laura Abbott , Sumit Semwal , Sakari Ailus , Minchan Kim , Nitin Gupta , Christophe Leroy , Linux-Arch , linux-hyperv@vger.kernel.org, linux-s390 , Peter Zijlstra , linuxppc-dev , Linux Kernel Mailing List , DRI Development , linaro-mm-sig@lists.linaro.org, Linux MM , Linux IOMMU , Johannes Weiner , bpf , Robin Murphy , Linux ARM 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 Hi Christoph, On Tue, Apr 14, 2020 at 3:22 PM Christoph Hellwig wrote: > Open code it in __bpf_map_area_alloc, which is the only caller. Also > clean up __bpf_map_area_alloc to have a single vmalloc call with > slightly different flags instead of the current two different calls. > > For this to compile for the nommu case add a __vmalloc_node_range stub > to nommu.c. Apparently your nommu-cross-compilers are in quarantaine? ;-) > Signed-off-by: Christoph Hellwig > Acked-by: Peter Zijlstra (Intel) > Acked-by: Johannes Weiner > --- a/mm/nommu.c > +++ b/mm/nommu.c > @@ -150,6 +150,14 @@ void *__vmalloc(unsigned long size, gfp_t gfp_mask) > } > EXPORT_SYMBOL(__vmalloc); > > +void *__vmalloc_node_range(unsigned long size, unsigned long align, > + unsigned long start, unsigned long end, gfp_t gfp_mask, > + pgprot_t prot, unsigned long vm_flags, int node, > + const void *caller) > +{ > + return __vmalloc(size, flags); On Mon, Apr 20, 2020 at 10:39 AM wrote: > FAILED linux-next/m5272c3_defconfig/m68k-gcc8 Mon Apr 20, 18:38 > > http://kisskb.ellerman.id.au/kisskb/buildresult/14213623/ > > mm/nommu.c:158:25: error: 'flags' undeclared (first use in this function); did you mean 'class'? "return __vmalloc(size, gfp_mask);", I assume? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds