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 B15A4C433F5 for ; Tue, 10 May 2022 03:18:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 025126B0072; Mon, 9 May 2022 23:18:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F171D6B0073; Mon, 9 May 2022 23:18:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DB8A46B0074; Mon, 9 May 2022 23:18:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id C91C16B0072 for ; Mon, 9 May 2022 23:18:38 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 9694680A7C for ; Tue, 10 May 2022 03:18:38 +0000 (UTC) X-FDA: 79448375916.24.6D52986 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf05.hostedemail.com (Postfix) with ESMTP id D8963100097 for ; Tue, 10 May 2022 03:18:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652152715; x=1683688715; h=date:from:to:cc:subject:message-id:mime-version; bh=OYaAN5a3Kfmzv5oJlrWJDy/JU2MFH7fgQw9HBiFSkPU=; b=cKfXTHKgDHeX817W91pk+SLzSs6HlEgmwkNMErXQgK8e/YP/kK3iul7Q NqMh2uwovbh4Iphm1J2jLRbkocYlfXPnYGXO50rXE3VIt+nfdzrIspqVS xWjMkXa3JQvEckk1HcFriuXAsQQDbXBXBWc76MkA0Y4JnwmjlfZTwMFGT /CuULiNfj8xAIeoL5NXt3eHWk1HZKsLlvhMxabTJ3Bf6i1UTvDCBhyDdt NlrWUIQeDVssto4CN2LQqak521Gho1pg+neJRyziiYKKmpqpBoU/+UXKF Jz2D2M9jGUL29gJAsPEI8Y2S0GkxrRP90dnb+HXSmyEbBEab6iLbTpKrP Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10342"; a="294472520" X-IronPort-AV: E=Sophos;i="5.91,213,1647327600"; d="scan'208";a="294472520" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2022 20:18:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,213,1647327600"; d="scan'208";a="696885038" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 09 May 2022 20:18:30 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1noGOL-000HEg-LP; Tue, 10 May 2022 03:18:29 +0000 Date: Tue, 10 May 2022 11:18:27 +0800 From: kernel test robot To: "Liam R. Howlett" Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: [akpm-mm:mm-unstable 223/289] mm/nommu.c:579:9: error: implicit declaration of function 'vma_mas_store'; did you mean 'mas_store'? Message-ID: <202205101156.5sB7PhaF-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=cKfXTHKg; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf05.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: D8963100097 X-Rspam-User: X-Stat-Signature: enspohhumdcfx7k6tc17xfw6ed1pr38j X-HE-Tag: 1652152698-496746 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/akpm/mm.git mm-unstable head: 2a9491e94405acaf36dbb0a2fee06a42630f263d commit: 9d00916d98443bef124029e1df960a91579c406b [223/289] mm: remove rb tree. config: sh-buildonly-randconfig-r003-20220509 (https://download.01.org/0day-ci/archive/20220510/202205101156.5sB7PhaF-lkp@intel.com/config) compiler: sh4-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/akpm/mm.git/commit/?id=9d00916d98443bef124029e1df960a91579c406b git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch --no-tags akpm-mm mm-unstable git checkout 9d00916d98443bef124029e1df960a91579c406b # 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=sh SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): mm/nommu.c: In function 'add_vma_to_mm': >> mm/nommu.c:579:9: error: implicit declaration of function 'vma_mas_store'; did you mean 'mas_store'? [-Werror=implicit-function-declaration] 579 | vma_mas_store(vma, &mas); | ^~~~~~~~~~~~~ | mas_store mm/nommu.c: In function 'delete_vma_from_mm': >> mm/nommu.c:615:9: error: implicit declaration of function 'vma_mas_remove' [-Werror=implicit-function-declaration] 615 | vma_mas_remove(vma, &mas); | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +579 mm/nommu.c 547 548 /* 549 * add a VMA into a process's mm_struct in the appropriate place in the list 550 * and tree and add to the address space's page tree also if not an anonymous 551 * page 552 * - should be called with mm->mmap_lock held writelocked 553 */ 554 static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma) 555 { 556 struct address_space *mapping; 557 struct vm_area_struct *prev; 558 MA_STATE(mas, &mm->mm_mt, vma->vm_start, vma->vm_end); 559 560 BUG_ON(!vma->vm_region); 561 562 mm->map_count++; 563 vma->vm_mm = mm; 564 565 /* add the VMA to the mapping */ 566 if (vma->vm_file) { 567 mapping = vma->vm_file->f_mapping; 568 569 i_mmap_lock_write(mapping); 570 flush_dcache_mmap_lock(mapping); 571 vma_interval_tree_insert(vma, &mapping->i_mmap); 572 flush_dcache_mmap_unlock(mapping); 573 i_mmap_unlock_write(mapping); 574 } 575 576 prev = mas_prev(&mas, 0); 577 mas_reset(&mas); 578 /* add the VMA to the tree */ > 579 vma_mas_store(vma, &mas); 580 __vma_link_list(mm, vma, prev); 581 } 582 583 /* 584 * delete a VMA from its owning mm_struct and address space 585 */ 586 static void delete_vma_from_mm(struct vm_area_struct *vma) 587 { 588 int i; 589 struct address_space *mapping; 590 struct mm_struct *mm = vma->vm_mm; 591 struct task_struct *curr = current; 592 MA_STATE(mas, &vma->vm_mm->mm_mt, 0, 0); 593 594 mm->map_count--; 595 for (i = 0; i < VMACACHE_SIZE; i++) { 596 /* if the vma is cached, invalidate the entire cache */ 597 if (curr->vmacache.vmas[i] == vma) { 598 vmacache_invalidate(mm); 599 break; 600 } 601 } 602 603 /* remove the VMA from the mapping */ 604 if (vma->vm_file) { 605 mapping = vma->vm_file->f_mapping; 606 607 i_mmap_lock_write(mapping); 608 flush_dcache_mmap_lock(mapping); 609 vma_interval_tree_remove(vma, &mapping->i_mmap); 610 flush_dcache_mmap_unlock(mapping); 611 i_mmap_unlock_write(mapping); 612 } 613 614 /* remove from the MM's tree and list */ > 615 vma_mas_remove(vma, &mas); 616 __vma_unlink_list(mm, vma); 617 } 618 -- 0-DAY CI Kernel Test Service https://01.org/lkp