From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [bvanassche:thread-safety 74/95] include/linux/mm.h:3586:9: error: call to undeclared function 'pmd_none'; ISO C99 and later do not support implicit function declarations
Date: Thu, 26 Mar 2026 21:11:00 +0800 [thread overview]
Message-ID: <202603262145.DVPa0Idh-lkp@intel.com> (raw)
tree: https://github.com/bvanassche/linux thread-safety
head: 3725aac930bc010283e98a5bc020c40abc6eaa4b
commit: faf5ae90e764936fc9d0e32ecb46576a685ca106 [74/95] treewide: Add lock context annotations in all include files
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20260326/202603262145.DVPa0Idh-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 054e11d1a17e5ba88bb1a8ef32fad3346e80b186)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260326/202603262145.DVPa0Idh-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603262145.DVPa0Idh-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm/kernel/asm-offsets.c:14:
>> include/linux/mm.h:3586:9: error: call to undeclared function 'pmd_none'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
3586 | return pte_alloc(mm, pmd) ? NULL :
| ^
include/linux/mm.h:3577:38: note: expanded from macro 'pte_alloc'
3577 | #define pte_alloc(mm, pmd) (unlikely(pmd_none(*(pmd))) && __pte_alloc(mm, pmd))
| ^
1 error generated.
make[3]: *** [scripts/Makefile.build:184: arch/arm/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1337: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/pmd_none +3586 include/linux/mm.h
3578
3579 #define pte_alloc_map(mm, pmd, address) \
3580 (pte_alloc(mm, pmd) ? NULL : pte_offset_map(pmd, address))
3581
3582 static inline pte_t *pte_alloc_map_lock(struct mm_struct *mm, pmd_t *pmd,
3583 unsigned long addr, spinlock_t **ptlp)
3584 __cond_acquires(nonnull, *ptlp)
3585 {
> 3586 return pte_alloc(mm, pmd) ? NULL :
3587 pte_offset_map_lock(mm, pmd, addr, ptlp);
3588 }
3589
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-26 13:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202603262145.DVPa0Idh-lkp@intel.com \
--to=lkp@intel.com \
--cc=bvanassche@acm.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.