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 935C3C433F5 for ; Sun, 10 Apr 2022 16:15:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 288486B0071; Sun, 10 Apr 2022 12:15:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2388D6B0073; Sun, 10 Apr 2022 12:15:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0B2836B0074; Sun, 10 Apr 2022 12:15:20 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id F0B2E6B0071 for ; Sun, 10 Apr 2022 12:15:19 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id C5E4B6140B for ; Sun, 10 Apr 2022 16:15:19 +0000 (UTC) X-FDA: 79341469158.03.8DC9426 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf21.hostedemail.com (Postfix) with ESMTP id F20891C0004 for ; Sun, 10 Apr 2022 16:15: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=1649607319; x=1681143319; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=zk/Y4iUMfIBqmBjZuVQiE9xfOKHaflQOb3wFSGEoYyE=; b=FDBYkievtYpmrfrIhHbhMptH5eVojhu8PAzdI371lSzoCfwcDlix1dwE zc4MwHQMk09KkgO38/0xgjHIu7OIg1UMM8uIRZRvW96A7fPem6mpUxycc tDo2d/fng7QJ9hrLRTl8bAw1TlrPjdqUqpSjgjo4IV9iNOUEcW1RQnRmL Sf0KmueXBGlvyJP1H8oHVvAFtJE97jsi0pG7l8KwcM5Mn//QNgVY9HTKM 1tlQBI4e+wV3t9d7Qgi7Oot9bU3FRicfKImQQSx1bmmY9yWKdYU7APXuA m6CBzkWScCvbgaydsSb3hYVT/i82wgSTdqvQeIdQjKLLcoC4r28aqFqrv Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="324893653" X-IronPort-AV: E=Sophos;i="5.90,249,1643702400"; d="scan'208";a="324893653" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2022 09:15:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,249,1643702400"; d="scan'208";a="610677974" Received: from lkp-server02.sh.intel.com (HELO d3fc50ef50de) ([10.239.97.151]) by fmsmga008.fm.intel.com with ESMTP; 10 Apr 2022 09:15:11 -0700 Received: from kbuild by d3fc50ef50de with local (Exim 4.95) (envelope-from ) id 1ndaDW-0000wx-KN; Sun, 10 Apr 2022 16:15:10 +0000 Date: Mon, 11 Apr 2022 00:14:39 +0800 From: kernel test robot To: Zach O'Keefe , Alex Shi , David Hildenbrand , David Rientjes , Matthew Wilcox , Michal Hocko , Pasha Tatashin , SeongJae Park , Song Liu , Vlastimil Babka , Yang Shi , Zi Yan , linux-mm@kvack.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Andrea Arcangeli , Andrew Morton , Linux Memory Management List , Arnd Bergmann , Axel Rasmussen , Chris Kennelly , Chris Zankel , Helge Deller , Hugh Dickins , Ivan Kokshaysky , "James E.J. Bottomley" , Jens Axboe , "Kirill A. Shutemov" , Matt Turner , Max Filippov , Miaohe Lin , Minchan Kim , Patrick Xia Subject: Re: [PATCH 05/12] mm/madvise: introduce MADV_COLLAPSE sync hugepage collapse Message-ID: <202204110059.a0PLTrVC-lkp@intel.com> References: <20220410135445.3897054-6-zokeefe@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220410135445.3897054-6-zokeefe@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=FDBYkiev; spf=none (imf21.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: F20891C0004 X-Stat-Signature: 4z15pwbn346ssk3bdyh4iigcz7ojzf9q X-HE-Tag: 1649607318-159491 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: Hi Zach, Thank you for the patch! Yet something to improve: [auto build test ERROR on hnaz-mm/master] url: https://github.com/intel-lab-lkp/linux/commits/Zach-O-Keefe/mm-userspace-hugepage-collapse/20220410-215722 base: https://github.com/hnaz/linux-mm master config: mips-randconfig-r002-20220410 (https://download.01.org/0day-ci/archive/20220411/202204110059.a0PLTrVC-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 256c6b0ba14e8a7ab6373b61b7193ea8c0a3651c) 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 # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/4f4775a3e4a722525787b2c309032810356473c2 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Zach-O-Keefe/mm-userspace-hugepage-collapse/20220410-215722 git checkout 4f4775a3e4a722525787b2c309032810356473c2 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips 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/madvise.c:62:7: error: use of undeclared identifier 'MADV_COLLAPSE' case MADV_COLLAPSE: ^ mm/madvise.c:1055:7: error: use of undeclared identifier 'MADV_COLLAPSE' case MADV_COLLAPSE: ^ 2 errors generated. vim +/MADV_COLLAPSE +62 mm/madvise.c 44 45 /* 46 * Any behaviour which results in changes to the vma->vm_flags needs to 47 * take mmap_lock for writing. Others, which simply traverse vmas, need 48 * to only take it for reading. 49 */ 50 static int madvise_need_mmap_write(int behavior) 51 { 52 switch (behavior) { 53 case MADV_REMOVE: 54 case MADV_WILLNEED: 55 case MADV_DONTNEED: 56 case MADV_DONTNEED_LOCKED: 57 case MADV_COLD: 58 case MADV_PAGEOUT: 59 case MADV_FREE: 60 case MADV_POPULATE_READ: 61 case MADV_POPULATE_WRITE: > 62 case MADV_COLLAPSE: 63 return 0; 64 default: 65 /* be safe, default to 1. list exceptions explicitly */ 66 return 1; 67 } 68 } 69 -- 0-DAY CI Kernel Test Service https://01.org/lkp