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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69711C433F5 for ; Tue, 3 May 2022 19:15:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8F2396B00C5; Tue, 3 May 2022 15:15:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 89F3D6B00C7; Tue, 3 May 2022 15:15:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 740036B00C8; Tue, 3 May 2022 15:15:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id 62F1C6B00C5 for ; Tue, 3 May 2022 15:15:52 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 4466260240 for ; Tue, 3 May 2022 19:15:52 +0000 (UTC) X-FDA: 79425386544.05.8B2F5AE Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf17.hostedemail.com (Postfix) with ESMTP id A890640081 for ; Tue, 3 May 2022 19:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651605351; x=1683141351; h=date:from:to:cc:subject:message-id:mime-version; bh=eh+UDDARYDIccIec6Kv8Mbf14Mzr9J6fFwI8Z7JunYE=; b=YAmGoyn1k1UwzwMvgcevw1/XibANNDle2RySrYVIZH8Y3VK6POfJJb8+ Y3VPygcsdd7vuLI321ZAUEIPeg34VvpyHpYJyALrOXgJyw6dKWmcsDYF+ tPBlfHl7nDqwRStrKRlztDCraw2V22lP402tFpgCI8JBPeNzvBcUxMX9V K29c/14W78i4yh92UdRogRn8yAMuFZ5Vduty9DFCZbszwoh2TZUncA29K lbHGKpXMZicKIfJWVZfmALcBkWqK4a2h8lxzXsRSH1b5fuNPnGGFr6wIF g2YaZFrtlQLhCpicv2cocN7+niqsKkFuMML/UN+lRj/bihiJ4PBnu5EoX Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10336"; a="248108554" X-IronPort-AV: E=Sophos;i="5.91,196,1647327600"; d="scan'208";a="248108554" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2022 12:15:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,196,1647327600"; d="scan'208";a="562345430" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 03 May 2022 12:15:28 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nlxzW-000AjR-G8; Tue, 03 May 2022 19:15:22 +0000 Date: Wed, 4 May 2022 03:15:09 +0800 From: kernel test robot To: Christophe Leroy Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Sasha Levin , Catalin Marinas , Andrew Morton , Linux Memory Management List , Greg Kroah-Hartman Subject: [linux-stable-rc:queue/5.4 83/83] fs/hugetlbfs/inode.c:211:40: error: implicit declaration of function 'arch_get_mmap_end' Message-ID: <202205040323.boErRvCI-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: A890640081 Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=YAmGoyn1; spf=none (imf17.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.151) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Stat-Signature: wzzib5bas47biuhnj8x7xw4gciuqbuz4 X-HE-Tag: 1651605338-498154 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.4 head: 2d723d526f735966b904f52c02d035793882b005 commit: 2d723d526f735966b904f52c02d035793882b005 [83/83] mm, hugetlb: allow for "high" userspace addresses config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20220504/202205040323.boErRvCI-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 11.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=2d723d526f735966b904f52c02d035793882b005 git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git fetch --no-tags linux-stable-rc queue/5.4 git checkout 2d723d526f735966b904f52c02d035793882b005 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash fs/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): fs/hugetlbfs/inode.c: In function 'hugetlb_get_unmapped_area': >> fs/hugetlbfs/inode.c:211:40: error: implicit declaration of function 'arch_get_mmap_end' [-Werror=implicit-function-declaration] 211 | const unsigned long mmap_end = arch_get_mmap_end(addr); | ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/arch_get_mmap_end +211 fs/hugetlbfs/inode.c 197 198 /* 199 * Called under down_write(mmap_sem). 200 */ 201 202 #ifndef HAVE_ARCH_HUGETLB_UNMAPPED_AREA 203 static unsigned long 204 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, 205 unsigned long len, unsigned long pgoff, unsigned long flags) 206 { 207 struct mm_struct *mm = current->mm; 208 struct vm_area_struct *vma; 209 struct hstate *h = hstate_file(file); 210 struct vm_unmapped_area_info info; > 211 const unsigned long mmap_end = arch_get_mmap_end(addr); 212 213 if (len & ~huge_page_mask(h)) 214 return -EINVAL; 215 if (len > TASK_SIZE) 216 return -ENOMEM; 217 218 if (flags & MAP_FIXED) { 219 if (prepare_hugepage_range(file, addr, len)) 220 return -EINVAL; 221 return addr; 222 } 223 224 if (addr) { 225 addr = ALIGN(addr, huge_page_size(h)); 226 vma = find_vma(mm, addr); 227 if (mmap_end - len >= addr && 228 (!vma || addr + len <= vm_start_gap(vma))) 229 return addr; 230 } 231 232 info.flags = 0; 233 info.length = len; 234 info.low_limit = TASK_UNMAPPED_BASE; 235 info.high_limit = arch_get_mmap_end(addr); 236 info.align_mask = PAGE_MASK & ~huge_page_mask(h); 237 info.align_offset = 0; 238 return vm_unmapped_area(&info); 239 } 240 #endif 241 -- 0-DAY CI Kernel Test Service https://01.org/lkp