Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [frederic-dynticks:kthread/core 15/15] kernel/sched/isolation.c:49:37: error: call to undeclared function 'lockdep_is_cpuset_held'; ISO C99 and later do not support implicit function declarations
@ 2025-05-27 17:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-27 17:43 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git kthread/core
head:   5f864154521cea5391361b58372298785bc43639
commit: 5f864154521cea5391361b58372298785bc43639 [15/15] sched/isolation: Convert housekeeping cpumasks to rcu pointers
config: s390-randconfig-002-20250528 (https://download.01.org/0day-ci/archive/20250528/202505280104.0qNWdu1l-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250528/202505280104.0qNWdu1l-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/202505280104.0qNWdu1l-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/sched/build_utility.c:102:
>> kernel/sched/isolation.c:49:37: error: call to undeclared function 'lockdep_is_cpuset_held'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      49 |                 if (IS_ENABLED(CONFIG_CPUSETS) && lockdep_is_cpuset_held())
         |                                                   ^
   kernel/sched/isolation.c:49:37: note: did you mean 'lockdep_is_cpus_held'?
   include/linux/cpuhplock.h:15:12: note: 'lockdep_is_cpus_held' declared here
      15 | extern int lockdep_is_cpus_held(void);
         |            ^
   1 error generated.


vim +/lockdep_is_cpuset_held +49 kernel/sched/isolation.c

    39	
    40	static bool housekeeping_dereference_check(enum hk_type type)
    41	{
    42		if (type == HK_TYPE_DOMAIN) {
    43			if (system_state == SYSTEM_BOOTING)
    44				return true;
    45			if (IS_ENABLED(CONFIG_HOTPLUG_CPU) && lockdep_is_cpus_write_held())
    46				return true;
    47			if (percpu_rwsem_is_held(&housekeeping_pcpu_lock))
    48				return true;
  > 49			if (IS_ENABLED(CONFIG_CPUSETS) && lockdep_is_cpuset_held())
    50				return true;
    51	
    52			return false;
    53		}
    54	
    55		return true;
    56	}
    57	

-- 
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:[~2025-05-27 17:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-27 17:43 [frederic-dynticks:kthread/core 15/15] kernel/sched/isolation.c:49:37: error: call to undeclared function 'lockdep_is_cpuset_held'; 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