From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 2490/2572] kernel/sched/core.c:9719:2: error: call to undeclared function 'tg_update_affinity_domains'; ISO C99 and later do not support implicit function declarations
Date: Wed, 24 Jan 2024 10:05:54 +0800 [thread overview]
Message-ID: <202401241028.WtP2GPxu-lkp@intel.com> (raw)
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: a662a03b9d1d5b93551f9c0f9c2875373b223115
commit: 6eb07f9925a906d81f328c808ba25f7800888dce [2490/2572] sched: Introduce smart grid scheduling strategy for cfs
config: arm64-randconfig-004-20240124 (https://download.01.org/0day-ci/archive/20240124/202401241028.WtP2GPxu-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240124/202401241028.WtP2GPxu-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/202401241028.WtP2GPxu-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sched/core.c:9719:2: error: call to undeclared function 'tg_update_affinity_domains'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
9719 | tg_update_affinity_domains(cpu, 1);
| ^
kernel/sched/core.c:9719:2: note: did you mean 'irq_update_affinity_hint'?
include/linux/interrupt.h:325:1: note: 'irq_update_affinity_hint' declared here
325 | irq_update_affinity_hint(unsigned int irq, const struct cpumask *m)
| ^
kernel/sched/core.c:9809:2: error: call to undeclared function 'tg_update_affinity_domains'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
9809 | tg_update_affinity_domains(cpu, 0);
| ^
>> kernel/sched/core.c:9931:2: error: call to undeclared function 'init_auto_affinity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
9931 | init_auto_affinity(&root_task_group);
| ^
kernel/sched/core.c:9931:2: note: did you mean 'irq_set_affinity'?
include/linux/interrupt.h:308:12: note: 'irq_set_affinity' declared here
308 | extern int irq_set_affinity(unsigned int irq, const struct cpumask *cpumask);
| ^
kernel/sched/core.c:9931:22: error: use of undeclared identifier 'root_task_group'; did you mean 'task_group'?
9931 | init_auto_affinity(&root_task_group);
| ^~~~~~~~~~~~~~~
| task_group
kernel/sched/sched.h:2140:34: note: 'task_group' declared here
2140 | static inline struct task_group *task_group(struct task_struct *p)
| ^
4 errors generated.
vim +/tg_update_affinity_domains +9719 kernel/sched/core.c
9699
9700 int sched_cpu_activate(unsigned int cpu)
9701 {
9702 struct rq *rq = cpu_rq(cpu);
9703 struct rq_flags rf;
9704
9705 /*
9706 * Clear the balance_push callback and prepare to schedule
9707 * regular tasks.
9708 */
9709 balance_push_set(cpu, false);
9710
9711 #ifdef CONFIG_SCHED_SMT
9712 /*
9713 * When going up, increment the number of cores with SMT present.
9714 */
9715 if (cpumask_weight(cpu_smt_mask(cpu)) == 2)
9716 static_branch_inc_cpuslocked(&sched_smt_present);
9717 #endif
9718 set_cpu_active(cpu, true);
> 9719 tg_update_affinity_domains(cpu, 1);
9720
9721 if (sched_smp_initialized) {
9722 sched_update_numa(cpu, true);
9723 sched_domains_numa_masks_set(cpu);
9724 cpuset_cpu_active();
9725 }
9726
9727 /*
9728 * Put the rq online, if not already. This happens:
9729 *
9730 * 1) In the early boot process, because we build the real domains
9731 * after all CPUs have been brought up.
9732 *
9733 * 2) At runtime, if cpuset_cpu_active() fails to rebuild the
9734 * domains.
9735 */
9736 rq_lock_irqsave(rq, &rf);
9737 if (rq->rd) {
9738 BUG_ON(!cpumask_test_cpu(cpu, rq->rd->span));
9739 set_rq_online(rq);
9740 }
9741 rq_unlock_irqrestore(rq, &rf);
9742
9743 return 0;
9744 }
9745
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-01-24 2:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-24 2:05 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-24 3:27 [openeuler:OLK-6.6 2490/2572] kernel/sched/core.c:9719:2: error: call to undeclared function 'tg_update_affinity_domains'; ISO C99 and later do not support implicit function declarations kernel test robot
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=202401241028.WtP2GPxu-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--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.