All of lore.kernel.org
 help / color / mirror / Atom feed
* [anolis-intel-cloud:devel-5.10 25/25] kernel/sched/group_balancer.c:1411:6: warning: no previous prototype for 'update_free_tg_specs'
@ 2025-07-10 12:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-10 12:19 UTC (permalink / raw)
  To: aubrey.li; +Cc: oe-kbuild-all

tree:   https://gitee.com/anolis/intel-cloud-kernel.git devel-5.10
head:   a4b5d3580fee42a67cb52a2e418d8747700a1edb
commit: 6f6c7b8117e139e02ffebb7d2744ff9ea6ba0499 [25/25] anolis: sched: fix deadlock when add/remove task group to/from gb_sd
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250710/202507102016.076iGYZx-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250710/202507102016.076iGYZx-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/202507102016.076iGYZx-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/sched/group_balancer.c:159:23: warning: no previous prototype for 'cpu_llc_mask' [-Wmissing-prototypes]
     159 | const struct cpumask *cpu_llc_mask(int cpu)
         |                       ^~~~~~~~~~~~
   kernel/sched/group_balancer.c:169:23: warning: no previous prototype for 'cpu_die_mask' [-Wmissing-prototypes]
     169 | const struct cpumask *cpu_die_mask(int cpu)
         |                       ^~~~~~~~~~~~
   kernel/sched/group_balancer.c:174:23: warning: no previous prototype for 'cpu_core_mask' [-Wmissing-prototypes]
     174 | const struct cpumask *cpu_core_mask(int cpu)
         |                       ^~~~~~~~~~~~~
   kernel/sched/group_balancer.c:179:23: warning: no previous prototype for 'cpu_root_mask' [-Wmissing-prototypes]
     179 | const struct cpumask *cpu_root_mask(int cpu)
         |                       ^~~~~~~~~~~~~
   kernel/sched/group_balancer.c:315:37: warning: no previous prototype for 'kernfs_to_gb_sd' [-Wmissing-prototypes]
     315 | struct group_balancer_sched_domain *kernfs_to_gb_sd(struct kernfs_node *kn)
         |                                     ^~~~~~~~~~~~~~~
   kernel/sched/group_balancer.c:323:37: warning: no previous prototype for 'group_balancer_kn_lock_live' [-Wmissing-prototypes]
     323 | struct group_balancer_sched_domain *group_balancer_kn_lock_live(struct kernfs_node *kn)
         |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/group_balancer.c:337:6: warning: no previous prototype for 'group_balancer_kn_unlock' [-Wmissing-prototypes]
     337 | void group_balancer_kn_unlock(struct kernfs_node *kn)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/group_balancer.c:1171:6: warning: no previous prototype for 'sched_init_group_balancer_levels' [-Wmissing-prototypes]
    1171 | void sched_init_group_balancer_levels(void)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/group_balancer.c:1411:6: warning: no previous prototype for 'update_free_tg_specs' [-Wmissing-prototypes]
    1411 | void update_free_tg_specs(struct group_balancer_sched_domain *gb_sd, int specs)
         |      ^~~~~~~~~~~~~~~~~~~~
   kernel/sched/group_balancer.c:1434:6: warning: no previous prototype for 'add_tg_to_group_balancer_sched_domain_locked' [-Wmissing-prototypes]
    1434 | void add_tg_to_group_balancer_sched_domain_locked(struct task_group *tg,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/group_balancer.c:1448:6: warning: no previous prototype for 'add_tg_to_group_balancer_sched_domain' [-Wmissing-prototypes]
    1448 | void add_tg_to_group_balancer_sched_domain(struct task_group *tg,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/update_free_tg_specs +1411 kernel/sched/group_balancer.c

  1410	
> 1411	void update_free_tg_specs(struct group_balancer_sched_domain *gb_sd, int specs)
  1412	{
  1413		struct group_balancer_sched_domain *parent;
  1414	
  1415		if (specs != -1) {
  1416			for (parent = gb_sd; parent; parent = parent->parent) {
  1417				raw_spin_lock(&parent->lock);
  1418				parent->free_tg_specs += specs;
  1419				raw_spin_unlock(&parent->lock);
  1420			}
  1421		}
  1422	}
  1423	

-- 
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-07-10 12:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-10 12:19 [anolis-intel-cloud:devel-5.10 25/25] kernel/sched/group_balancer.c:1411:6: warning: no previous prototype for 'update_free_tg_specs' kernel test robot

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.