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 1C8A3C433F5 for ; Thu, 24 Feb 2022 10:34:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 812238D0001; Thu, 24 Feb 2022 05:34:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 798B58D0002; Thu, 24 Feb 2022 05:34:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 66C1D8D0001; Thu, 24 Feb 2022 05:34:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0060.hostedemail.com [216.40.44.60]) by kanga.kvack.org (Postfix) with ESMTP id 51DA68D0001 for ; Thu, 24 Feb 2022 05:34:26 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 0590918195407 for ; Thu, 24 Feb 2022 10:34:26 +0000 (UTC) X-FDA: 79177314132.24.CC174E7 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf08.hostedemail.com (Postfix) with ESMTP id 5F0D9160004 for ; Thu, 24 Feb 2022 10:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645698864; x=1677234864; h=date:from:to:cc:subject:message-id:mime-version; bh=hv2rLK5q7iQbVmh4YX002nPYRH2pYAgFkzCvPbkJwQc=; b=LaTXN9X+BjZR/BHSN38g/Ux+Y1ujLJAdRETBn3ysQsc90dq2I1+PyEi3 nlVFE18JtkNVAJirxjplYCqz3mBJSbHKWWjJ3JZH/lqQOa2x9NtCpJyGM jgDDqhgSAVaQeh0Y+Fd4EPfViUNFQhjQ6c+hx8qRQAw6bqG0R/eFeeBkh TbapHBIaTO63WUrM6qWnZtzqWI4PZEMVrRnANcU0A5z2/L0yzDAX5uTPd RdL/yDsW3X6+L+4+qoGA85G70h+jfu6DRb8SqjF7XGLh1NjwgYHhdLNhB 4e34L3sk10BWCmUZXUUXXcUeRjwXnKShV4GZ4YtojD1h39fMGIEpGj5Xl A==; X-IronPort-AV: E=McAfee;i="6200,9189,10267"; a="276830536" X-IronPort-AV: E=Sophos;i="5.88,393,1635231600"; d="scan'208";a="276830536" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 02:34:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,393,1635231600"; d="scan'208";a="574164168" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 24 Feb 2022 02:34:20 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nNBRz-00030F-Bh; Thu, 24 Feb 2022 10:34:19 +0000 Date: Thu, 24 Feb 2022 18:33:54 +0800 From: kernel test robot To: "Liam R. Howlett" Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 6849/7915] arch/riscv/kernel/vdso.c:123:27: error: 'next' undeclared; did you mean 'net'? Message-ID: <202202241835.nj71K3LQ-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) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=LaTXN9X+; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf08.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.88) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 5F0D9160004 X-Stat-Signature: denaqpt13sffjxjopqihniq566izso4d X-HE-Tag: 1645698864-395636 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/next/linux-next.git master head: d4a0ae62a277377de396850ed4b709b6bd9b7326 commit: fe87c1493391a78238520253b1dd8f80144ced87 [6849/7915] riscv: Use vma iterator for vdso config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20220224/202202241835.nj71K3LQ-lkp@intel.com/config) compiler: riscv64-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fe87c1493391a78238520253b1dd8f80144ced87 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout fe87c1493391a78238520253b1dd8f80144ced87 # 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=riscv 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 >>): In file included from arch/riscv/kernel/vdso.c:10: arch/riscv/kernel/vdso.c: In function 'vdso_join_timens': >> arch/riscv/kernel/vdso.c:123:27: error: 'next' undeclared (first use in this function); did you mean 'net'? 123 | for_each_vma(vmi, next) { | ^~~~ include/linux/mm.h:683:49: note: in definition of macro 'for_each_vma' 683 | #define for_each_vma(vmi, vma) while ((vma = vma_next(&(vmi))) != NULL) | ^~~ arch/riscv/kernel/vdso.c:123:27: note: each undeclared identifier is reported only once for each function it appears in 123 | for_each_vma(vmi, next) { | ^~~~ include/linux/mm.h:683:49: note: in definition of macro 'for_each_vma' 683 | #define for_each_vma(vmi, vma) while ((vma = vma_next(&(vmi))) != NULL) | ^~~ vim +123 arch/riscv/kernel/vdso.c 107 108 /* 109 * The vvar mapping contains data for a specific time namespace, so when a task 110 * changes namespace we must unmap its vvar data for the old namespace. 111 * Subsequent faults will map in data for the new namespace. 112 * 113 * For more details see timens_setup_vdso_data(). 114 */ 115 int vdso_join_timens(struct task_struct *task, struct time_namespace *ns) 116 { 117 struct mm_struct *mm = task->mm; 118 struct vm_area_struct *vma; 119 VMA_ITERATOR(vmi, mm, 0); 120 121 mmap_read_lock(mm); 122 > 123 for_each_vma(vmi, next) { 124 unsigned long size = vma->vm_end - vma->vm_start; 125 126 if (vma_is_special_mapping(vma, vdso_info.dm)) 127 zap_page_range(vma, vma->vm_start, size); 128 } 129 130 mmap_read_unlock(mm); 131 return 0; 132 } 133 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org