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 DA9E0C433EF for ; Sun, 26 Dec 2021 16:55:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 078296B0073; Sun, 26 Dec 2021 11:55:03 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 026EE6B0074; Sun, 26 Dec 2021 11:55:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E30896B0075; Sun, 26 Dec 2021 11:55:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id D3ABB6B0073 for ; Sun, 26 Dec 2021 11:55:02 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 871358249980 for ; Sun, 26 Dec 2021 16:55:02 +0000 (UTC) X-FDA: 78960545244.20.7AE9DD6 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf23.hostedemail.com (Postfix) with ESMTP id 40E6F140007 for ; Sun, 26 Dec 2021 16:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1640537701; x=1672073701; h=date:from:to:cc:subject:message-id:mime-version; bh=1YNIGshGtHHnN4HiOmEkAs1ZFUSxiN1gFX5ws+wPBE8=; b=H8qx6qnvglOXyuGvhkF2QN6Ij1YpHm7uAx4U2wwmy6PFWMCToxbOIXnh VHml7RnCAcdeaAAKths5uoM/WGnoXoO7I1wzrd97Xv6yKU5FHApkNXRt2 Ky2MzouXMmh8iCONtpzOXb6l1MLx6NC+ceQxX1J02b1OukX5ON+3Q4Rcw rH1S/x8tSnbc9U9u2kuLv1cs+m450EllaJ1YM6QQWHdroNtxtaSrjqMLI Mi+oE2xfJ7b5Zn10nVraPSIlBUMePBkF8F3OhasV7uK6/DJtIpBE6ZBJX rygpswLfN/3uT3NOe9IOPaAF7kzrcxQU7n96qmlOSTuNec/hP0YAvfzwz w==; X-IronPort-AV: E=McAfee;i="6200,9189,10209"; a="304484815" X-IronPort-AV: E=Sophos;i="5.88,237,1635231600"; d="scan'208";a="304484815" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Dec 2021 08:54:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,237,1635231600"; d="scan'208";a="469512187" Received: from lkp-server01.sh.intel.com (HELO e357b3ef1427) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 26 Dec 2021 08:54:54 -0800 Received: from kbuild by e357b3ef1427 with local (Exim 4.92) (envelope-from ) id 1n1WnO-0005aD-3P; Sun, 26 Dec 2021 16:54:54 +0000 Date: Mon, 27 Dec 2021 00:54:38 +0800 From: kernel test robot To: Alex Shi Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: mm/compaction.c:463:20: warning: unused function 'isolation_suitable' Message-ID: <202112270015.F1tSBi9z-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 40E6F140007 X-Stat-Signature: acbgbrj4cw5c9xghtcakzbyx6c7rawio Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=H8qx6qnv; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf23.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.100) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam11 X-HE-Tag: 1640537691-532429 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/torvalds/linux.git master head: 438645193e59e91761ccb3fa55f6ce70b615ff93 commit: 9df41314390b81a541ca6e84c8340bad0959e4b5 mm/compaction: do page isolation first in compaction date: 1 year ago config: mips-randconfig-c004-20211226 (https://download.01.org/0day-ci/archive/20211227/202112270015.F1tSBi9z-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a9e8b1ee7fd44b53c555a7823ae8fd1a8209c520) 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9df41314390b81a541ca6e84c8340bad0959e4b5 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 9df41314390b81a541ca6e84c8340bad0959e4b5 # 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 warnings (new ones prefixed by >>): mm/compaction.c:56:27: warning: unused variable 'HPAGE_FRAG_CHECK_INTERVAL_MSEC' static const unsigned int HPAGE_FRAG_CHECK_INTERVAL_MSEC = 500; ^ >> mm/compaction.c:463:20: warning: unused function 'isolation_suitable' static inline bool isolation_suitable(struct compact_control ^ >> mm/compaction.c:469:20: warning: unused function 'pageblock_skip_persistent' static inline bool pageblock_skip_persistent(struct page ^ >> mm/compaction.c:474:20: warning: unused function 'update_pageblock_skip' static inline void update_pageblock_skip(struct compact_control ^ fatal error: error in backend: Nested variants found in inline asm string: ' .set push .set noat .set push .set arch=r4000 .if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/cmpxchg.h", .line = 163, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif 1: ll $0, $2 # __cmpxchg_asm bne $0, ${3:z}, 2f .set pop move $$1, ${4:z} .set arch=r4000 sc $$1, $1 beqz $$1, 1b .set pop 2: .if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/cmpxchg.h", .line = 163, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif ' clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation) clang version 14.0.0 (git://gitmirror/llvm_project 0c553cc1af2e4c14100df6cf4a6fc91987e778e6) Target: mips-unknown-linux Thread model: posix InstalledDir: /opt/cross/clang-0c553cc1af/bin clang-14: note: diagnostic msg: Makefile arch block certs crypto drivers fs include init ipc kernel lib mm net scripts security sound source usr virt vim +/isolation_suitable +463 mm/compaction.c e380bebe477154 Mel Gorman 2019-03-05 440 bb13ffeb9f6bfe Mel Gorman 2012-10-08 441 /* bb13ffeb9f6bfe Mel Gorman 2012-10-08 442 * If no pages were isolated then mark this pageblock to be skipped in the 62997027ca5b3d Mel Gorman 2012-10-08 443 * future. The information is later cleared by __reset_isolation_suitable(). bb13ffeb9f6bfe Mel Gorman 2012-10-08 444 */ c89511ab2f8fe2 Mel Gorman 2012-10-08 445 static void update_pageblock_skip(struct compact_control *cc, d097a6f6352254 Mel Gorman 2019-03-05 446 struct page *page, unsigned long pfn) bb13ffeb9f6bfe Mel Gorman 2012-10-08 447 { c89511ab2f8fe2 Mel Gorman 2012-10-08 448 struct zone *zone = cc->zone; 6815bf3f233e0b Joonsoo Kim 2013-12-18 449 2583d6713267a4 Vlastimil Babka 2017-11-17 450 if (cc->no_set_skip_hint) 6815bf3f233e0b Joonsoo Kim 2013-12-18 451 return; 6815bf3f233e0b Joonsoo Kim 2013-12-18 452 bb13ffeb9f6bfe Mel Gorman 2012-10-08 453 if (!page) bb13ffeb9f6bfe Mel Gorman 2012-10-08 454 return; bb13ffeb9f6bfe Mel Gorman 2012-10-08 455 bb13ffeb9f6bfe Mel Gorman 2012-10-08 456 set_pageblock_skip(page); c89511ab2f8fe2 Mel Gorman 2012-10-08 457 35979ef3393110 David Rientjes 2014-06-04 458 /* Update where async and sync compaction should restart */ 35979ef3393110 David Rientjes 2014-06-04 459 if (pfn < zone->compact_cached_free_pfn) c89511ab2f8fe2 Mel Gorman 2012-10-08 460 zone->compact_cached_free_pfn = pfn; c89511ab2f8fe2 Mel Gorman 2012-10-08 461 } bb13ffeb9f6bfe Mel Gorman 2012-10-08 462 #else bb13ffeb9f6bfe Mel Gorman 2012-10-08 @463 static inline bool isolation_suitable(struct compact_control *cc, bb13ffeb9f6bfe Mel Gorman 2012-10-08 464 struct page *page) bb13ffeb9f6bfe Mel Gorman 2012-10-08 465 { bb13ffeb9f6bfe Mel Gorman 2012-10-08 466 return true; bb13ffeb9f6bfe Mel Gorman 2012-10-08 467 } bb13ffeb9f6bfe Mel Gorman 2012-10-08 468 b527cfe5bc2320 Vlastimil Babka 2017-11-17 @469 static inline bool pageblock_skip_persistent(struct page *page) 21dc7e023611fb David Rientjes 2017-11-17 470 { 21dc7e023611fb David Rientjes 2017-11-17 471 return false; 21dc7e023611fb David Rientjes 2017-11-17 472 } 21dc7e023611fb David Rientjes 2017-11-17 473 21dc7e023611fb David Rientjes 2017-11-17 @474 static inline void update_pageblock_skip(struct compact_control *cc, d097a6f6352254 Mel Gorman 2019-03-05 475 struct page *page, unsigned long pfn) e380bebe477154 Mel Gorman 2019-03-05 476 { e380bebe477154 Mel Gorman 2019-03-05 477 } e380bebe477154 Mel Gorman 2019-03-05 478 :::::: The code at line 463 was first introduced by commit :::::: bb13ffeb9f6bfeb301443994dfbf29f91117dfb3 mm: compaction: cache if a pageblock was scanned and no pages were isolated :::::: TO: Mel Gorman :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org