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 68935EB64D9 for ; Thu, 29 Jun 2023 12:04:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B9E9C8D0002; Thu, 29 Jun 2023 08:04:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B4E9C8D0001; Thu, 29 Jun 2023 08:04:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A15AC8D0002; Thu, 29 Jun 2023 08:04:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 93CB58D0001 for ; Thu, 29 Jun 2023 08:04:40 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 4B16B140C25 for ; Thu, 29 Jun 2023 12:04:40 +0000 (UTC) X-FDA: 80955653520.21.592CB34 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by imf21.hostedemail.com (Postfix) with ESMTP id 7590E1C00D4 for ; Thu, 29 Jun 2023 12:03:42 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=IIXL8Z3l; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf21.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 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=1688040222; 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=Ze8xECsL+/4csOY127ME/F5GeQToof/wd88ZQzcmgMY=; b=Ql3hpMU9MUnyaMQJ3cK9z+vsT8Z5F4s+QFiSgsjMnxdbR2gByyScZT3PgmdHA/fDisWpVH hnzahWf5WG+5UUQVBqhAeO0Chhwkn47Od88sFnhdBYH8JrYRRIEAh70nlRh2wgB+1xL4+e 3Y7SOav754KYn5ZBTGGF9eNwSNTisBM= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=IIXL8Z3l; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf21.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688040222; a=rsa-sha256; cv=none; b=yYNIx7GaKGiCxeCkj4+Xb4dZjVIf3oHvO39xqw0ZU+pdq6RXBtAzvgb+7d6muMP3Luktqp 5UR3Ajf4nyuhWBEk2jJ0yidLAzE92AsLvNT2qg1Nt9T/+JpRCur8SMPKFbbhle9Mq7INMI gDTO/IqRgi/ghaEBfo/arLkENnBNtPw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688040222; x=1719576222; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=MBbSbcK9F4Hh8jsyxNjcbnUbWXs38VmIRaYcEIVQG+g=; b=IIXL8Z3l7GzU+rWcvjGD/7j5I+cRfpiQMXCMVu5k1xnRBF1R/T13Y41v /3XhFgrQVMnerL/Ftn+7Dq2H7XsQTdWG6QqLKt2xHhK5n360YHeYpWdab fxtajrZ9y2Esk1BR0YGRrpFPmllTaaMe1y/V7XgJ6XiUUA7WhyK9vy28k bYpuR1V7Ezm27oCMKOtB24NAocl0LOplElGc5RZczLoMiItRTdwrmsgf3 YhrpuJwY4q3MoM7uZ0q6Ozip4zx0NsZEE2lw7epSlH671YMLOMIinz6XQ c0fGw4GiuXCrHYdkKMWObVzHzYjG+GbKwghHhZ1S/O3fuNnnIUhdAQwfW Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="425759062" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="425759062" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2023 05:03:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="667488588" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="667488588" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 29 Jun 2023 05:03:25 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qEqMu-000E7d-21; Thu, 29 Jun 2023 12:03:24 +0000 Date: Thu, 29 Jun 2023 20:02:52 +0800 From: kernel test robot To: Shiyang Ruan , linux-fsdevel@vger.kernel.org, nvdimm@lists.linux.dev, linux-xfs@vger.kernel.org, linux-mm@kvack.org Cc: oe-kbuild-all@lists.linux.dev, dan.j.williams@intel.com, willy@infradead.org, jack@suse.cz, akpm@linux-foundation.org, djwong@kernel.org, mcgrof@kernel.org Subject: Re: [PATCH v12 2/2] mm, pmem, xfs: Introduce MF_MEM_REMOVE for unbind Message-ID: <202306291954.zqVvCUZ5-lkp@intel.com> References: <20230629081651.253626-3-ruansy.fnst@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230629081651.253626-3-ruansy.fnst@fujitsu.com> X-Rspamd-Queue-Id: 7590E1C00D4 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: xpmr6jqwz4yn1qt6d768h4zk611ocnip X-HE-Tag: 1688040222-466440 X-HE-Meta: U2FsdGVkX18bclf0VGT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AalhSNImWCvQc3vfMPkbTdUQbYgpWpNEtf+Y6D6giiBdQTPzHp8H3J2CmywQfJ9M6WhW9RkVK4DHI0JR59QN0B96/otND2hmd4iAwI+eK7y2vLthIC5XoP4+LluxTXg/yUVlEV60BhOCX4T4p1ChaydUpu6VLOTao0q0IYRPdd7RP0fbeHXRU/Y/cypco1vDASzIPQ40AMR5bgQhdruzRRZkJcqAsJ9SWc5NL2CZQjOCNwETv038kWunwk50/V7cJyZ8Yiz5cJUlg+YEqe9ozT6Zk 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 Shiyang, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Shiyang-Ruan/xfs-fix-the-calculation-for-end-and-length/20230629-161913 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230629081651.253626-3-ruansy.fnst%40fujitsu.com patch subject: [PATCH v12 2/2] mm, pmem, xfs: Introduce MF_MEM_REMOVE for unbind config: x86_64-kexec (https://download.01.org/0day-ci/archive/20230629/202306291954.zqVvCUZ5-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230629/202306291954.zqVvCUZ5-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306291954.zqVvCUZ5-lkp@intel.com/ All errors (new ones prefixed by >>): fs/xfs/xfs_notify_failure.c: In function 'xfs_dax_notify_failure_freeze': >> fs/xfs/xfs_notify_failure.c:127:33: error: 'FREEZE_HOLDER_KERNEL' undeclared (first use in this function) 127 | while (freeze_super(sb, FREEZE_HOLDER_KERNEL) != 0) { | ^~~~~~~~~~~~~~~~~~~~ fs/xfs/xfs_notify_failure.c:127:33: note: each undeclared identifier is reported only once for each function it appears in >> fs/xfs/xfs_notify_failure.c:127:16: error: too many arguments to function 'freeze_super' 127 | while (freeze_super(sb, FREEZE_HOLDER_KERNEL) != 0) { | ^~~~~~~~~~~~ In file included from include/linux/huge_mm.h:8, from include/linux/mm.h:988, from fs/xfs/kmem.h:11, from fs/xfs/xfs_linux.h:24, from fs/xfs/xfs.h:22, from fs/xfs/xfs_notify_failure.c:6: include/linux/fs.h:2289:12: note: declared here 2289 | extern int freeze_super(struct super_block *super); | ^~~~~~~~~~~~ fs/xfs/xfs_notify_failure.c: In function 'xfs_dax_notify_failure_thaw': fs/xfs/xfs_notify_failure.c:140:32: error: 'FREEZE_HOLDER_KERNEL' undeclared (first use in this function) 140 | error = thaw_super(sb, FREEZE_HOLDER_KERNEL); | ^~~~~~~~~~~~~~~~~~~~ >> fs/xfs/xfs_notify_failure.c:140:17: error: too many arguments to function 'thaw_super' 140 | error = thaw_super(sb, FREEZE_HOLDER_KERNEL); | ^~~~~~~~~~ include/linux/fs.h:2290:12: note: declared here 2290 | extern int thaw_super(struct super_block *super); | ^~~~~~~~~~ >> fs/xfs/xfs_notify_failure.c:148:24: error: 'FREEZE_HOLDER_USERSPACE' undeclared (first use in this function) 148 | thaw_super(sb, FREEZE_HOLDER_USERSPACE); | ^~~~~~~~~~~~~~~~~~~~~~~ fs/xfs/xfs_notify_failure.c:148:9: error: too many arguments to function 'thaw_super' 148 | thaw_super(sb, FREEZE_HOLDER_USERSPACE); | ^~~~~~~~~~ include/linux/fs.h:2290:12: note: declared here 2290 | extern int thaw_super(struct super_block *super); | ^~~~~~~~~~ vim +/FREEZE_HOLDER_KERNEL +127 fs/xfs/xfs_notify_failure.c 119 120 static void 121 xfs_dax_notify_failure_freeze( 122 struct xfs_mount *mp) 123 { 124 struct super_block *sb = mp->m_super; 125 126 /* Wait until no one is holding the FREEZE_HOLDER_KERNEL. */ > 127 while (freeze_super(sb, FREEZE_HOLDER_KERNEL) != 0) { 128 // Shall we just wait, or print warning then return -EBUSY? 129 delay(HZ / 10); 130 } 131 } 132 133 static void 134 xfs_dax_notify_failure_thaw( 135 struct xfs_mount *mp) 136 { 137 struct super_block *sb = mp->m_super; 138 int error; 139 > 140 error = thaw_super(sb, FREEZE_HOLDER_KERNEL); 141 if (error) 142 xfs_emerg(mp, "still frozen after notify failure, err=%d", 143 error); 144 /* 145 * Also thaw userspace call anyway because the device is about to be 146 * removed immediately. 147 */ > 148 thaw_super(sb, FREEZE_HOLDER_USERSPACE); 149 } 150 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki