From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3B3CC54FCB for ; Sun, 26 Apr 2020 00:09:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 60EB22071E for ; Sun, 26 Apr 2020 00:09:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="S9bHhssF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 60EB22071E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 15B198E0005; Sat, 25 Apr 2020 20:09:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0E46B8E0003; Sat, 25 Apr 2020 20:09:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F3BB38E0005; Sat, 25 Apr 2020 20:09:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0025.hostedemail.com [216.40.44.25]) by kanga.kvack.org (Postfix) with ESMTP id D8EDA8E0003 for ; Sat, 25 Apr 2020 20:09:11 -0400 (EDT) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9AF3F8248047 for ; Sun, 26 Apr 2020 00:09:11 +0000 (UTC) X-FDA: 76748071302.22.ants28_6d53c05e6da18 X-HE-Tag: ants28_6d53c05e6da18 X-Filterd-Recvd-Size: 3231 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Sun, 26 Apr 2020 00:09:11 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 18BF420706; Sun, 26 Apr 2020 00:09:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587859750; bh=7NdY0NNdK+pnP7y2/nMQG6uA5V6Po26a6S/758kW7sc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=S9bHhssFNeV9Ytq3o8bu8tSolXDlcEc6CFOXhkYmv8HQqPronQm9zbRw+Svcd72ra A5Uu2c2U+0HitRC+JDJ7UlM/49sMvfq5p77z7iBIfGc/ywKBTH9GkJ3TPB/ygbFbkJ 9602G4gnxBALKhb0Z72lLYwIc9B6iB3tNmCiC0KU= Date: Sat, 25 Apr 2020 17:09:09 -0700 From: Andrew Morton To: kbuild test robot Cc: Christoph Hellwig , kbuild-all@lists.01.org, Linux Memory Management List Subject: Re: [linux-next:master 4466/4894] kernel/bpf/syscall.c:305:58: error: 'VMALLOC_END' undeclared; did you mean 'VM_LOCKED'? Message-Id: <20200425170909.dfa87562035f3f9d0abbf417@linux-foundation.org> In-Reply-To: <202004260449.YsixxTC2%lkp@intel.com> References: <202004260449.YsixxTC2%lkp@intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, 26 Apr 2020 04:25:54 +0800 kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 8bdabd09ec86a993419c8c98a4f34c12bc902c6c > commit: d4493a599f1aa34153b047da482cf6419f3c79dc [4466/4894] mm: remove vmalloc_user_node_flags > config: riscv-randconfig-a001-20200426 (attached as .config) > compiler: riscv64-linux-gcc (GCC) 9.3.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout d4493a599f1aa34153b047da482cf6419f3c79dc > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=riscv > > kernel/bpf/syscall.c: In function '__bpf_map_area_alloc': > >> kernel/bpf/syscall.c:305:58: error: 'VMALLOC_END' undeclared (first use in this function); did you mean 'VM_LOCKED'? > 305 | return __vmalloc_node_range(size, align, VMALLOC_START, VMALLOC_END, CONFIG_MMU=n. I guess this will suffice? --- a/arch/riscv/include/asm/pgtable.h~mm-switch-the-test_vmalloc-module-to-use-__vmalloc_node-fix-fix +++ a/arch/riscv/include/asm/pgtable.h @@ -472,9 +472,9 @@ static inline int ptep_clear_flush_young #define PAGE_KERNEL __pgprot(0) #define swapper_pg_dir NULL +#define TASK_SIZE 0xffffffffUL #define VMALLOC_START 0 - -#define TASK_SIZE 0xffffffffUL +#define VMALLOC_END TASK_SIZE #endif /* !CONFIG_MMU */ It could be any value, really - we just need VMALLOC_END there to make the compiler happy.