All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: aubrey.li@linux.intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [anolis-intel-cloud:devel-5.10 25/25] kernel/sched/group_balancer.c:1411:6: warning: no previous prototype for 'update_free_tg_specs'
Date: Thu, 10 Jul 2025 20:19:32 +0800	[thread overview]
Message-ID: <202507102016.076iGYZx-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-07-10 12:20 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=202507102016.076iGYZx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aubrey.li@linux.intel.com \
    --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.