From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (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 2C90D205AD7 for ; Wed, 23 Jul 2025 16:53:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753289623; cv=none; b=LNaoM/hpZVykRwZ9Z83ymejf1eWEtJ3XRusoaWaImX4eh413Epga0js8/X2fu50NT6rfXdFkX9ctphyaJd8IdO4gAKjQHlYz1T7jZ2i5Ccsh3jji4evhH7ZogNSOG8AHncGxonkeUZoHXua/QjEbsM5xUsg2658owgL51Xl+dK4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753289623; c=relaxed/simple; bh=yagcy7PAKz7Wxjqn+AhlXuJqSsJzHX3ZPx5ihXHPIKg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=vGHg2WCUU6MfBQ6v7oRGIES6y9vQHNS5rUu+hPqSg4gNiggiXGnolJceNCiaEvPY7Q5s7RebfrMhLBvK8OHp+g/L0FoejcYtSXLWDPCTN6kPzIVhLMyC50ud7s4T0Fy5cLh8A0iT4bRvxtIU6y6FvKS9jgHksUYzjhs8cDNy4EU= 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=bOp/JH9V; arc=none smtp.client-ip=198.175.65.17 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="bOp/JH9V" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1753289621; x=1784825621; h=date:from:to:cc:subject:message-id:mime-version; bh=yagcy7PAKz7Wxjqn+AhlXuJqSsJzHX3ZPx5ihXHPIKg=; b=bOp/JH9VEIbIdFmCCm5MQVIu/wDJ1FV8ScGEB4FjSspsXSugRLAu6xvN d9V/pi/4b3w4Dwx9lFk8EnhoTQzwbQAKtKKj/fDePcYKKkYhQTIUz7GwU M4UcM8/JYeGnfITT7YfNlJLeHGWYFU1+PEL6dr/nGShaLOjRsqMTanAfF 5S3IDZdOGURGlSxQcJ4drc8azC/1BwnPqDmqhHwfugH9nIwFtWbw9FVLZ MEvQP6fJKS4HnxRot6VMYbf2x85pVN400d05GaSTpLfo7YUHKqPA9uoou pCOj2p/4gJTmA2NclxSJ45QgYJfV0epeH6gLS3QAoVCTKsrk+DTYytb+t w==; X-CSE-ConnectionGUID: LKu0WVRPT+O3n5gwpi0R/A== X-CSE-MsgGUID: ly+OaqcsTMeInND5Eg3RkQ== X-IronPort-AV: E=McAfee;i="6800,10657,11501"; a="55540205" X-IronPort-AV: E=Sophos;i="6.16,333,1744095600"; d="scan'208";a="55540205" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2025 09:53:41 -0700 X-CSE-ConnectionGUID: kvG+qd8BRtu4hSWfLdmBzg== X-CSE-MsgGUID: ozDmmze3Q5q0ZoZhRjFadA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,333,1744095600"; d="scan'208";a="159634092" Received: from lkp-server01.sh.intel.com (HELO 9ee84586c615) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 23 Jul 2025 09:53:39 -0700 Received: from kbuild by 9ee84586c615 with local (Exim 4.96) (envelope-from ) id 1uecin-000JbH-1e; Wed, 23 Jul 2025 16:53:37 +0000 Date: Thu, 24 Jul 2025 00:53:31 +0800 From: kernel test robot To: kernel@openeuler.org, zhangchangzhong Cc: oe-kbuild-all@lists.linux.dev Subject: [openeuler:openEuler-1.0-LTS 1668/1668] kernel/sched/core.c:5976:22: error: use of undeclared identifier 'root_task_group'; did you mean 'task_group'? Message-ID: <202507240004.EXSTt6VO-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Hui, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: ec206d272f0e39511777d67fe7995c8b6fd1681b commit: 713cfd2684fa5ea08b144d92b9858b932c0f1705 [1668/1668] sched: Introduce smart grid scheduling strategy for cfs config: x86_64-buildonly-randconfig-006-20250620 (https://download.01.org/0day-ci/archive/20250724/202507240004.EXSTt6VO-lkp@intel.com/config) compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250724/202507240004.EXSTt6VO-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/202507240004.EXSTt6VO-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/sched/core.c:1587:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes] 1587 | void sched_set_stop_task(int cpu, struct task_struct *stop) | ^ kernel/sched/core.c:1587:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1587 | void sched_set_stop_task(int cpu, struct task_struct *stop) | ^ | static kernel/sched/core.c:3771:35: warning: no previous prototype for function 'preempt_schedule_irq' [-Wmissing-prototypes] 3771 | asmlinkage __visible void __sched preempt_schedule_irq(void) | ^ kernel/sched/core.c:3771:22: note: declare 'static' if the function is not intended to be used outside of this translation unit 3771 | asmlinkage __visible void __sched preempt_schedule_irq(void) | ^ | static kernel/sched/core.c:5845:2: error: implicit declaration of function 'tg_update_affinity_domains' [-Werror,-Wimplicit-function-declaration] 5845 | tg_update_affinity_domains(cpu, 1); | ^ kernel/sched/core.c:5904:2: error: implicit declaration of function 'tg_update_affinity_domains' [-Werror,-Wimplicit-function-declaration] 5904 | tg_update_affinity_domains(cpu, 0); | ^ kernel/sched/core.c:5976:2: error: implicit declaration of function 'init_auto_affinity' [-Werror,-Wimplicit-function-declaration] 5976 | init_auto_affinity(&root_task_group); | ^ kernel/sched/core.c:5976:2: note: did you mean 'irq_set_affinity'? include/linux/interrupt.h:292:1: note: 'irq_set_affinity' declared here 292 | irq_set_affinity(unsigned int irq, const struct cpumask *cpumask) | ^ >> kernel/sched/core.c:5976:22: error: use of undeclared identifier 'root_task_group'; did you mean 'task_group'? 5976 | init_auto_affinity(&root_task_group); | ^~~~~~~~~~~~~~~ | task_group kernel/sched/sched.h:1444:34: note: 'task_group' declared here 1444 | static inline struct task_group *task_group(struct task_struct *p) | ^ kernel/sched/core.c:6029:32: warning: variable 'ptr' set but not used [-Wunused-but-set-variable] 6029 | unsigned long alloc_size = 0, ptr; | ^ 3 warnings and 4 errors generated. vim +5976 kernel/sched/core.c 5949 5950 void __init sched_init_smp(void) 5951 { 5952 sched_init_numa(); 5953 5954 /* 5955 * There's no userspace yet to cause hotplug operations; hence all the 5956 * CPU masks are stable and all blatant races in the below code cannot 5957 * happen. The hotplug lock is nevertheless taken to satisfy lockdep, 5958 * but there won't be any contention on it. 5959 */ 5960 cpus_read_lock(); 5961 mutex_lock(&sched_domains_mutex); 5962 sched_init_domains(cpu_active_mask); 5963 mutex_unlock(&sched_domains_mutex); 5964 cpus_read_unlock(); 5965 5966 /* Move init over to a non-isolated CPU */ 5967 if (set_cpus_allowed_ptr(current, housekeeping_cpumask(HK_FLAG_DOMAIN)) < 0) 5968 BUG(); 5969 sched_init_granularity(); 5970 5971 init_sched_rt_class(); 5972 init_sched_dl_class(); 5973 5974 sched_smp_initialized = true; 5975 > 5976 init_auto_affinity(&root_task_group); 5977 } 5978 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki