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 DB26CECAAD3 for ; Wed, 14 Sep 2022 22:04:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E1DCD8D0001; Wed, 14 Sep 2022 18:04:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DA6366B0073; Wed, 14 Sep 2022 18:04:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C46FB8D0001; Wed, 14 Sep 2022 18:04:18 -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 AEB4E6B0071 for ; Wed, 14 Sep 2022 18:04:18 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 7AA4D1405A3 for ; Wed, 14 Sep 2022 22:04:18 +0000 (UTC) X-FDA: 79912070196.14.7E80261 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf04.hostedemail.com (Postfix) with ESMTP id 284184009D for ; Wed, 14 Sep 2022 22:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663193057; x=1694729057; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=p3oc3q2U/df+Y6Jf+6GoDWbjGub5SY7+B7D0sWSkZfM=; b=OQRbsfjPuDjz733EeN3Jyk2Fstfuao9VHj46NV6zTKiaZP7H/6tGItH+ rIxK+E10uYN5JRn+xkbSmuy3eCStRSs9TGuWarojjYo00X5OAPw7FBz0R wNiePlXn1KAw6sw+wVmhVnztQxSDuJbrmzdN+VZ6Zat+4qe5VvK+gjz7M Sx+5Tjuo9kUBYFymFlnV4pFUTUfmSstakcHTp4IqH4eeWVwLF2tfVk0lw 1HjinxY1SFn9/45vHmTNyTG2r0Cuj0wdaGGRjqhCAvUwGMvCrmhJ9gZ8E 3QU1z1+NgJXyEn1SIFn0f2wpdb2FnrtjBCc2T6Jpt0TMs6iFRsxD3V5zp A==; X-IronPort-AV: E=McAfee;i="6500,9779,10470"; a="281584410" X-IronPort-AV: E=Sophos;i="5.93,315,1654585200"; d="scan'208";a="281584410" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2022 15:04:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,315,1654585200"; d="scan'208";a="720738892" Received: from lkp-server01.sh.intel.com (HELO d6e6b7c4e5a2) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 14 Sep 2022 15:04:09 -0700 Received: from kbuild by d6e6b7c4e5a2 with local (Exim 4.96) (envelope-from ) id 1oYaUK-0000bw-10; Wed, 14 Sep 2022 22:04:08 +0000 Date: Thu, 15 Sep 2022 06:03:39 +0800 From: kernel test robot To: Doug Berger , Andrew Morton Cc: kbuild-all@lists.01.org, Linux Memory Management List , Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Mike Kravetz , Muchun Song , Mike Rapoport , Christoph Hellwig , Marek Szyprowski , Robin Murphy , Borislav Petkov , "Paul E. McKenney" , Neeraj Upadhyay , Randy Dunlap , Damien Le Moal , Doug Berger , Florian Fainelli , David Hildenbrand , Zi Yan , Oscar Salvador , Hari Bathini , Kees Cook , - , KOSAKI Motohiro , Mel Gorman , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 18/21] mm/cma: support CMA in Designated Movable Blocks Message-ID: <202209150503.AZYsY64p-lkp@intel.com> References: <20220913195508.3511038-19-opendmb@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220913195508.3511038-19-opendmb@gmail.com> ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663193058; a=rsa-sha256; cv=none; b=7KMKrNs8SMspbGpb+TYCTUhoyehkLRU0WRZVKgYKQmqVmzoswMu/bA+lL4q4YSoHvHRfnt ZAUqhFGoibJq9DnnjPSRRYuDc4Ro+C1uYo5h57Jh09a1CdujNAWAdgyP+1LudmXB4UbwAK 7fvJcOi1KhYlQEBVaUreTLhUds/Jcxc= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=OQRbsfjP; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf04.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663193058; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=koQU7+tx1VDoSL7xW33gNI7W07LqkIalM+q1X4Kcvts=; b=IUM6ESoYwmpPJQ12coTGiZVnQyyVnE3K9n6++uMgHivfMHDuQgwRmEDpuA7yhU7bUNJgOk GznHbcU4CWwzyY5z7xIqD9WRDGPY9v+iXHNeAnruMPwEwTLbGF2PjliyAwaWglR53NLnDG ua6vxIQXoM9aqmDhoB0WClTzfWPLR1w= X-Rspam-User: Authentication-Results: imf04.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=OQRbsfjP; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf04.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam11 X-Stat-Signature: mw65y7dcpqh4kmddnxxxqkwwuhyt1h8m X-Rspamd-Queue-Id: 284184009D X-HE-Tag: 1663193056-224169 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 Doug, I love your patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on linus/master v6.0-rc5] [cannot apply to akpm-mm/mm-everything next-20220914] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Doug-Berger/mm-introduce-Designated-Movable-Blocks/20220914-040216 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20220915/202209150503.AZYsY64p-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/635e919c92ca242c4b900bdfc7e21529e76f2f8e git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Doug-Berger/mm-introduce-Designated-Movable-Blocks/20220914-040216 git checkout 635e919c92ca242c4b900bdfc7e21529e76f2f8e # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): mm/page_alloc.c:9236:5: warning: no previous prototype for '_alloc_contig_range' [-Wmissing-prototypes] 9236 | int _alloc_contig_range(unsigned long start, unsigned long end, | ^~~~~~~~~~~~~~~~~~~ mm/page_alloc.c: In function 'alloc_contig_range': >> mm/page_alloc.c:9390:36: error: 'MIGRATE_CMA' undeclared (first use in this function); did you mean 'MIGRATE_SYNC'? 9390 | if (migratetype == MIGRATE_CMA) | ^~~~~~~~~~~ | MIGRATE_SYNC mm/page_alloc.c:9390:36: note: each undeclared identifier is reported only once for each function it appears in vim +9390 mm/page_alloc.c 9361 9362 /** 9363 * alloc_contig_range() -- tries to allocate given range of pages 9364 * @start: start PFN to allocate 9365 * @end: one-past-the-last PFN to allocate 9366 * @migratetype: migratetype of the underlying pageblocks (either 9367 * #MIGRATE_MOVABLE or #MIGRATE_CMA). All pageblocks 9368 * in range must have the same migratetype and it must 9369 * be either of the two. 9370 * @gfp_mask: GFP mask to use during compaction 9371 * 9372 * The PFN range does not have to be pageblock aligned. The PFN range must 9373 * belong to a single zone. 9374 * 9375 * The first thing this routine does is attempt to MIGRATE_ISOLATE all 9376 * pageblocks in the range. Once isolated, the pageblocks should not 9377 * be modified by others. 9378 * 9379 * Return: zero on success or negative error code. On success all 9380 * pages which PFN is in [start, end) are allocated for the caller and 9381 * need to be freed with free_contig_range(). 9382 */ 9383 int alloc_contig_range(unsigned long start, unsigned long end, 9384 unsigned int migratetype, gfp_t gfp_mask) 9385 { 9386 switch (dmb_intersects(start, end)) { 9387 case DMB_DISJOINT: 9388 break; 9389 case DMB_INTERSECTS: > 9390 if (migratetype == MIGRATE_CMA) 9391 migratetype = MIGRATE_MOVABLE; 9392 else 9393 return -EBUSY; 9394 break; 9395 default: 9396 return -EBUSY; 9397 } 9398 9399 return _alloc_contig_range(start, end, migratetype, gfp_mask); 9400 } 9401 EXPORT_SYMBOL(alloc_contig_range); 9402 -- 0-DAY CI Kernel Test Service https://01.org/lkp