public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [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
@ 2026-03-26 13:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-26 13:11 UTC (permalink / raw)
  To: Bart Van Assche; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-26 13:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-26 13:11 [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 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox