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 EB13CC433EF for ; Sun, 10 Apr 2022 16:05:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 26D9B6B0071; Sun, 10 Apr 2022 12:05:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 21BAD6B0073; Sun, 10 Apr 2022 12:05:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 096416B0074; Sun, 10 Apr 2022 12:05:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id EBE876B0071 for ; Sun, 10 Apr 2022 12:05:21 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id C5950120D4B for ; Sun, 10 Apr 2022 16:05:21 +0000 (UTC) X-FDA: 79341444042.06.78B8830 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf20.hostedemail.com (Postfix) with ESMTP id 8C3D01C0005 for ; Sun, 10 Apr 2022 16:05:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649606720; x=1681142720; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kVXTyPLw/Q8u4ED7h5xQN1H9CLMNiKXf7RMdyo+WWGI=; b=QR8jCWb4Sz+IfVXjQLOeaABqMkL94ImPftY0Z99PtzUmfjJ8yBVsGNq6 6xllPuOPshNqGWpzqNSJBFOSwyDUnglKi2UYSlD4/QixeaZWhXcBqtVrp MH25Xc41RqNdr4QuC8DP6Cjc5qT6n9HOG6D2mQLsE1ZsIrrkwTKxrvz54 XDZhTJaxKiDAvD+tjVOb40bXU8/6g2Y8bLZZEMruZ4JfueKE4e8+oDq8n LZQX65ZnxZ88ihZY7jPfc3mdWJ51BGYIWcVBqEgcZPigLSZOZgrdC1KOf RxWCI9bOLktUfEH8HsphiYUP95Q/esO5NLRXjCxWiFa4xqcvWeV7H5UwN g==; X-IronPort-AV: E=McAfee;i="6400,9594,10313"; a="261418387" X-IronPort-AV: E=Sophos;i="5.90,249,1643702400"; d="scan'208";a="261418387" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2022 09:05:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,249,1643702400"; d="scan'208";a="699072693" Received: from lkp-server02.sh.intel.com (HELO d3fc50ef50de) ([10.239.97.151]) by fmsmga001.fm.intel.com with ESMTP; 10 Apr 2022 09:05:11 -0700 Received: from kbuild by d3fc50ef50de with local (Exim 4.95) (envelope-from ) id 1nda3q-0000wV-Bk; Sun, 10 Apr 2022 16:05:10 +0000 Date: Mon, 11 Apr 2022 00:04:21 +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: 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: <202204102324.NLVoP3qG-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: imf20.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=QR8jCWb4; spf=none (imf20.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: uz6sjaqniteeco8hzwx3mofimpopougm X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 8C3D01C0005 X-HE-Tag: 1649606720-927014 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: alpha-defconfig (https://download.01.org/0day-ci/archive/20220410/202204102324.NLVoP3qG-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 11.2.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://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=gcc-11.2.0 make.cross O=build_dir ARCH=alpha 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: In function 'madvise_need_mmap_write': >> mm/madvise.c:62:14: error: 'MADV_COLLAPSE' undeclared (first use in this function); did you mean 'MADV_COLD'? 62 | case MADV_COLLAPSE: | ^~~~~~~~~~~~~ | MADV_COLD mm/madvise.c:62:14: note: each undeclared identifier is reported only once for each function it appears in mm/madvise.c: In function 'madvise_vma_behavior': mm/madvise.c:1055:14: error: 'MADV_COLLAPSE' undeclared (first use in this function); did you mean 'MADV_COLD'? 1055 | case MADV_COLLAPSE: | ^~~~~~~~~~~~~ | MADV_COLD vim +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