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 D921FC5472E for ; Sat, 24 Aug 2024 15:15:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 27B7E800E8; Sat, 24 Aug 2024 11:15:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1B5AA800D4; Sat, 24 Aug 2024 11:15:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EFAE0800E8; Sat, 24 Aug 2024 11:15:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id C5F16800D4 for ; Sat, 24 Aug 2024 11:15:15 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 53F0580664 for ; Sat, 24 Aug 2024 15:15:15 +0000 (UTC) X-FDA: 82487487390.05.0CDC26D Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by imf07.hostedemail.com (Postfix) with ESMTP id 32D8840009 for ; Sat, 24 Aug 2024 15:15:13 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=dD4fuQJR; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 192.198.163.10 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724512472; 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: references:dkim-signature; bh=JwxXRovFNuEINRkiqh1WsMXM6FL59AXXi0ud90TJuG4=; b=j+/4mElGVrjEKlgmf49zh+SDPQo5JRhGrptwZkCsmWs2hR2YsAMr/aOFmmxbLkGigS4Dzk 7Venfg+3L/PBn/TWc454I+/6tHQW2XsCSUu58lqoV3M065iUkqzLI9PyYOUMT2NHRHs6tP NPuRYJexyU4dAL+lm+/j2J0lRy3DwDI= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=dD4fuQJR; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 192.198.163.10 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724512472; a=rsa-sha256; cv=none; b=4H/F6FGQbCg6H40g2HSq/qW+ExuAsGk1ZGF9Np/sNPYdG1AOtpRQqtXPddswuyCpNIg/eZ q71/2n975COs/HKH1m7ENyBWItLcvwgmYrYaAWljxt4w3kQS7FPXkHqjystxdnT5W2gA5f J5k4j6zDLWmGVjAS9Bpv7cP9rQqum1o= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724512513; x=1756048513; h=date:from:to:cc:subject:message-id:mime-version; bh=NicyyiMcd9HEoDW7MAWCI8DVBTruke1Py8vjTw1MPhA=; b=dD4fuQJRWptz2P8u30tXZkJQFsgMFq5feJPBUTqE8gypVbG+bAuJekGi DvB86dc8sqk6xd6BjUKZefBcVvakNLU3dpYKO+ssBX1ZKj9LWgfcOZ1/w wCMGi1BmjwHKZWf5mrbVeoIF3mZB1gcBEvprr/JfLKJVRNFKxsF57tz69 uzaxpxwWJMlJiKuMb1KL0Hi5xr+AWp/cCuT1INdK44osKxwIpw5PqdzaE oJYZBZLpXfMisEzb33e5I4phZN0Ew+8ujreyop1vMTuXiaan/WZ51XTQg qJMNonwxxbglO8dkyRyur1IjM1hZFUJ4r/MzESRUNSE/o9oBVcmILsjya Q==; X-CSE-ConnectionGUID: jySiPhP3ScGgKq52+bUSxw== X-CSE-MsgGUID: tciYAIGOQHKzoMuuuQpamA== X-IronPort-AV: E=McAfee;i="6700,10204,11173"; a="34395860" X-IronPort-AV: E=Sophos;i="6.10,173,1719903600"; d="scan'208";a="34395860" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2024 08:15:08 -0700 X-CSE-ConnectionGUID: 7YbP17hZSSOoOE1qPIjQyA== X-CSE-MsgGUID: ENWhByTkRH+YJKb2VM3ZEw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,173,1719903600"; d="scan'208";a="67022624" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 24 Aug 2024 08:15:07 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1shsTo-000EYX-0s; Sat, 24 Aug 2024 15:15:04 +0000 Date: Sat, 24 Aug 2024 23:14:17 +0800 From: kernel test robot To: "Liam R. Howlett" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List , Lorenzo Stoakes Subject: [akpm-mm:mm-unstable 357/379] mm/vma.h:114:19: error: use of undeclared identifier 'USER_PGTABLES_CEILING' Message-ID: <202408242348.uGvgH9tt-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 32D8840009 X-Stat-Signature: 364rws1irgy1q7c9rt3e134igsfxixto X-HE-Tag: 1724512513-951114 X-HE-Meta: U2FsdGVkX19Lnm/r5RxbeN9zrboDz50DE/qXR8XepMSZBoIxYCkSGx6jEHeeJlfC9Dk/tpKU24XA/SFAbHXd/x5W8+QyOGz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UrheSeCneX5qR7kOaz28aKQR1g574RUCERW9H/n9MEvUUidpjr7K5AVfZhFeuXB0JtHzOtAD1KdqG9j5nQyXptFDnPdLeiJLp+s3NwozMeMxw15tuRTpb9S0iUJ4LfE40R3liu9GP5SzH9O0PKzly1bjok/g52ySulno6HijNANzEoJ11YrWW4FEl0XqJJuTbg1bOPorGwkI67fWdsEh1vEfl1g= 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: b659edec079c90012cf8d05624e312d1062b8b87 commit: ca39aca8db2d78ff82356defba75d14ce78a67b9 [357/379] mm/vma: track start and end for munmap in vma_munmap_struct config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240824/202408242348.uGvgH9tt-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 08e5a1de8227512d4774a534b91cb2353cef6284) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240824/202408242348.uGvgH9tt-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/202408242348.uGvgH9tt-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/filemap.c:15: In file included from include/linux/dax.h:6: In file included from include/linux/mm.h:2198: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from mm/filemap.c:52: In file included from mm/internal.h:13: include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~ ^ ~~~ include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 49 | NR_ZONE_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~~~~~~ ^ ~~~ In file included from mm/filemap.c:52: In file included from mm/internal.h:22: >> mm/vma.h:114:19: error: use of undeclared identifier 'USER_PGTABLES_CEILING' 114 | vms->unmap_end = USER_PGTABLES_CEILING; | ^ 3 warnings and 1 error generated. -- In file included from mm/vmscan.c:15: In file included from include/linux/mm.h:2198: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from mm/vmscan.c:30: include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~ ^ ~~~ include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 49 | NR_ZONE_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~~~~~~ ^ ~~~ In file included from mm/vmscan.c:67: In file included from mm/internal.h:22: >> mm/vma.h:114:19: error: use of undeclared identifier 'USER_PGTABLES_CEILING' 114 | vms->unmap_end = USER_PGTABLES_CEILING; | ^ mm/vmscan.c:401:51: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 401 | size += zone_page_state(zone, NR_ZONE_LRU_BASE + lru); | ~~~~~~~~~~~~~~~~ ^ ~~~ mm/vmscan.c:1730:4: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion] 1730 | __count_zid_vm_events(PGSCAN_SKIP, zid, nr_skipped[zid]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events' 139 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ mm/vmscan.c:2235:51: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 2235 | inactive = lruvec_page_state(lruvec, NR_LRU_BASE + inactive_lru); | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~ mm/vmscan.c:2236:49: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 2236 | active = lruvec_page_state(lruvec, NR_LRU_BASE + active_lru); | ~~~~~~~~~~~ ^ ~~~~~~~~~~ mm/vmscan.c:6251:3: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion] 6251 | __count_zid_vm_events(ALLOCSTALL, sc->reclaim_idx, 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events' 139 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ 8 warnings and 1 error generated. -- In file included from mm/page_alloc.c:19: In file included from include/linux/mm.h:2198: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from mm/page_alloc.c:44: include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~ ^ ~~~ include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 49 | NR_ZONE_LRU_BASE + lru, nr_pages); | ~~~~~~~~~~~~~~~~ ^ ~~~ In file included from mm/page_alloc.c:59: In file included from mm/internal.h:22: >> mm/vma.h:114:19: error: use of undeclared identifier 'USER_PGTABLES_CEILING' 114 | vms->unmap_end = USER_PGTABLES_CEILING; | ^ mm/page_alloc.c:2892:2: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion] 2892 | __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events' 139 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ mm/page_alloc.c:3009:3: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion] 3009 | __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events' 139 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ mm/page_alloc.c:4651:2: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion] 4651 | __count_zid_vm_events(PGALLOC, zone_idx(zone), nr_account); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events' 139 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ 6 warnings and 1 error generated. vim +/USER_PGTABLES_CEILING +114 mm/vma.h 67 68 /* Required for do_brk_flags(). */ 69 void init_vma_prep(struct vma_prepare *vp, 70 struct vm_area_struct *vma); 71 72 /* Required for do_brk_flags(). */ 73 void vma_complete(struct vma_prepare *vp, 74 struct vma_iterator *vmi, struct mm_struct *mm); 75 76 int vma_expand(struct vma_iterator *vmi, struct vm_area_struct *vma, 77 unsigned long start, unsigned long end, pgoff_t pgoff, 78 struct vm_area_struct *next); 79 80 int vma_shrink(struct vma_iterator *vmi, struct vm_area_struct *vma, 81 unsigned long start, unsigned long end, pgoff_t pgoff); 82 83 /* 84 * init_vma_munmap() - Initializer wrapper for vma_munmap_struct 85 * @vms: The vma munmap struct 86 * @vmi: The vma iterator 87 * @vma: The first vm_area_struct to munmap 88 * @start: The aligned start address to munmap 89 * @end: The aligned end address to munmap 90 * @uf: The userfaultfd list_head 91 * @unlock: Unlock after the operation. Only unlocked on success 92 */ 93 static inline void init_vma_munmap(struct vma_munmap_struct *vms, 94 struct vma_iterator *vmi, struct vm_area_struct *vma, 95 unsigned long start, unsigned long end, struct list_head *uf, 96 bool unlock) 97 { 98 vms->vmi = vmi; 99 vms->vma = vma; 100 if (vma) { 101 vms->mm = vma->vm_mm; 102 vms->start = start; 103 vms->end = end; 104 } else { 105 vms->mm = NULL; 106 vms->start = vms->end = 0; 107 } 108 vms->unlock = unlock; 109 vms->uf = uf; 110 vms->vma_count = 0; 111 vms->nr_pages = vms->locked_vm = vms->nr_accounted = 0; 112 vms->exec_vm = vms->stack_vm = vms->data_vm = 0; 113 vms->unmap_start = FIRST_USER_ADDRESS; > 114 vms->unmap_end = USER_PGTABLES_CEILING; 115 } 116 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki