From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADFF03ABD8D; Thu, 14 May 2026 08:38:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778747886; cv=none; b=gqGVT+Cc1v/GAMwH/yDDa+SBAU9z7Wdia9Gg8JUW3BSZJ5nhlMpCk/U3MsEJXkCxz59kX8ggyxOnnxY2sVVvXHoNr3NYKqYjRudjIVk5QVSLWybDBS69iNwtEuz4PndMiMl88FFPmlPy4AIN34RQBq68xkL8idYAjVT7kZLgXnM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778747886; c=relaxed/simple; bh=j0ThepAaKJ3WjfvHf/k3t/FE1agot5fafmNfA332LhU=; h=Date:From:To:Cc:Subject:Message-ID; b=svlJtImSPU+IVg83CfiVIQsPGEr1h3vZ0o63yT4Dy7w1U1qIyuhPbDsdePnYKAgkripD9tuXf/EC2gO4tJnWOzp58vNeN8zQNPQciIxCQT2MjIM5StTTmY3s+zDDJtpFetDkjDoZeVTGiGNlrkECqdqOtCPvCZXVA0bHsN5VdGg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cx89NjeD; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cx89NjeD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778747885; x=1810283885; h=date:from:to:cc:subject:message-id; bh=j0ThepAaKJ3WjfvHf/k3t/FE1agot5fafmNfA332LhU=; b=cx89NjeDCvQ92QBgrN9tnkOzvRKq/ltz1p5qxLvwT1RJKZPPG2IlWvsc fGioC4BGEp6rHRtggzzz8yeFsgM5ABnQT717wWypdvr+msUAO66dFNCln 2pCe6q0mW0YmhUv62QCifv+C8c0Fty1h85jeoyO/Y94SxFE8eLS9PGhU8 cUxA0/cfs2yXeP7USCgvade5rfWXhoXrwr8M903rSMgP9YbGZOktK5LEg 7pong9HPVtH/3dBBmiZF1nZxRk8KbvJmw9oxk3OjoYxP9THjlXeuSPu+r 0yM3uLQPehMNHL0r+G0iSGomQr1oFn7SmI6OuSW/sGeh/D+E/eXiIXoMj g==; X-CSE-ConnectionGUID: EeX1ShtASo+l4UsvRRVcXg== X-CSE-MsgGUID: 0tfaDrqPQzCofafnBNvKoQ== X-IronPort-AV: E=McAfee;i="6800,10657,11785"; a="79400264" X-IronPort-AV: E=Sophos;i="6.23,234,1770624000"; d="scan'208";a="79400264" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 May 2026 01:38:05 -0700 X-CSE-ConnectionGUID: Vp5QtY92QSeMGVT0OGly0A== X-CSE-MsgGUID: IGAwUXu7QDS+Udf9/WSFEw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,234,1770624000"; d="scan'208";a="276411331" Received: from lkp-server01.sh.intel.com (HELO dca79079c3eb) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 14 May 2026 01:38:02 -0700 Received: from kbuild by dca79079c3eb with local (Exim 4.98.2) (envelope-from ) id 1wNRZv-000000006Db-0EA2; Thu, 14 May 2026 08:37:59 +0000 Date: Thu, 14 May 2026 16:37:45 +0800 From: kernel test robot To: Lorenzo Stoakes Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, David Hildenbrand , Andrew Morton , Linux Memory Management List , mm-commits@vger.kernel.org Subject: [akpm-mm:mm-unstable 25/274] mm/hugetlb.c:7281:3: error: call to undeclared function '__huge_pmd_unshare'; ISO C99 and later do not support implicit function declarations Message-ID: <202605141638.b5ZBd6IF-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: 444fc9435e57157fcf30fc99aee44997f3458641 commit: 2bb8fe16f7bf4487248c9ff847fcf189c45b9508 [25/274] mm/hugetlb: avoid false positive lockdep assertion config: powerpc64-randconfig-001-20260514 (https://download.01.org/0day-ci/archive/20260514/202605141638.b5ZBd6IF-lkp@intel.com/config) compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260514/202605141638.b5ZBd6IF-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/202605141638.b5ZBd6IF-lkp@intel.com/ All errors (new ones prefixed by >>): >> mm/hugetlb.c:7281:3: error: call to undeclared function '__huge_pmd_unshare'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 7281 | __huge_pmd_unshare(&tlb, vma, address, ptep, take_locks); | ^ mm/hugetlb.c:7281:3: note: did you mean 'huge_pmd_unshare'? mm/hugetlb.c:6973:5: note: 'huge_pmd_unshare' declared here 6973 | int huge_pmd_unshare(struct mmu_gather *tlb, struct vm_area_struct *vma, | ^ 1 error generated. vim +/__huge_pmd_unshare +7281 mm/hugetlb.c 7233 7234 /* 7235 * If @take_locks is false, the caller must ensure that no concurrent page table 7236 * access can happen (except for gup_fast() and hardware page walks). 7237 * If @take_locks is true, we take the hugetlb VMA lock (to lock out things like 7238 * concurrent page fault handling) and the file rmap lock. 7239 */ 7240 static void hugetlb_unshare_pmds(struct vm_area_struct *vma, 7241 unsigned long start, 7242 unsigned long end, 7243 bool take_locks) 7244 { 7245 struct hstate *h = hstate_vma(vma); 7246 unsigned long sz = huge_page_size(h); 7247 struct mm_struct *mm = vma->vm_mm; 7248 struct mmu_notifier_range range; 7249 struct mmu_gather tlb; 7250 unsigned long address; 7251 spinlock_t *ptl; 7252 pte_t *ptep; 7253 7254 if (!(vma->vm_flags & VM_MAYSHARE)) 7255 return; 7256 7257 if (start >= end) 7258 return; 7259 7260 flush_cache_range(vma, start, end); 7261 tlb_gather_mmu_vma(&tlb, vma); 7262 7263 /* 7264 * No need to call adjust_range_if_pmd_sharing_possible(), because 7265 * we have already done the PUD_SIZE alignment. 7266 */ 7267 mmu_notifier_range_init(&range, MMU_NOTIFY_CLEAR, 0, mm, 7268 start, end); 7269 mmu_notifier_invalidate_range_start(&range); 7270 if (take_locks) { 7271 hugetlb_vma_lock_write(vma); 7272 i_mmap_lock_write(vma->vm_file->f_mapping); 7273 } else { 7274 i_mmap_assert_write_locked(vma->vm_file->f_mapping); 7275 } 7276 for (address = start; address < end; address += PUD_SIZE) { 7277 ptep = hugetlb_walk(vma, address, sz); 7278 if (!ptep) 7279 continue; 7280 ptl = huge_pte_lock(h, mm, ptep); > 7281 __huge_pmd_unshare(&tlb, vma, address, ptep, take_locks); 7282 spin_unlock(ptl); 7283 } 7284 huge_pmd_unshare_flush(&tlb, vma); 7285 if (take_locks) { 7286 i_mmap_unlock_write(vma->vm_file->f_mapping); 7287 hugetlb_vma_unlock_write(vma); 7288 } 7289 /* 7290 * No need to call mmu_notifier_arch_invalidate_secondary_tlbs(), see 7291 * Documentation/mm/mmu_notifier.rst. 7292 */ 7293 mmu_notifier_invalidate_range_end(&range); 7294 tlb_finish_mmu(&tlb); 7295 } 7296 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki