* [tip:sched/core 23/23] kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared; did you mean 'sched_debug_setup'?
@ 2021-04-17 6:47 ` kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-04-17 6:47 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: kbuild-all, linux-kernel, x86
[-- Attachment #1: Type: text/plain, Size: 3682 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
head: a1b93fc0377e73dd54f819a993f83291324bb54a
commit: a1b93fc0377e73dd54f819a993f83291324bb54a [23/23] sched/debug: Rename the sched_debug parameter to sched_verbose
config: arc-randconfig-r003-20210416 (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=a1b93fc0377e73dd54f819a993f83291324bb54a
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip sched/core
git checkout a1b93fc0377e73dd54f819a993f83291324bb54a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/sched/topology.c: In function 'sched_debug_setup':
>> kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
17 | sched_debug_verbose = true;
| ^~~~~~~~~~~~~~~~~~~
| sched_debug_setup
kernel/sched/topology.c:17:2: note: each undeclared identifier is reported only once for each function it appears in
kernel/sched/topology.c: In function 'sched_debug':
kernel/sched/topology.c:25:9: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
25 | return sched_debug_verbose;
| ^~~~~~~~~~~~~~~~~~~
| sched_debug_setup
kernel/sched/topology.c: In function 'sched_domain_debug':
kernel/sched/topology.c:134:7: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
134 | if (!sched_debug_verbose)
| ^~~~~~~~~~~~~~~~~~~
| sched_debug_setup
kernel/sched/topology.c: In function 'build_sched_domains':
kernel/sched/topology.c:2144:12: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
2144 | if (rq && sched_debug_verbose) {
| ^~~~~~~~~~~~~~~~~~~
| sched_debug_setup
In file included from include/linux/perf_event.h:25,
from include/linux/trace_events.h:10,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:85,
from kernel/sched/sched.h:66,
from kernel/sched/topology.c:5:
At top level:
arch/arc/include/asm/perf_event.h:126:23: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=]
126 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
vim +17 kernel/sched/topology.c
14
15 static int __init sched_debug_setup(char *str)
16 {
> 17 sched_debug_verbose = true;
18
19 return 0;
20 }
21 early_param("sched_verbose", sched_debug_setup);
22
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32436 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [tip:sched/core 23/23] kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared; did you mean 'sched_debug_setup'?
@ 2021-04-17 6:47 ` kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2021-04-17 6:47 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3755 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
head: a1b93fc0377e73dd54f819a993f83291324bb54a
commit: a1b93fc0377e73dd54f819a993f83291324bb54a [23/23] sched/debug: Rename the sched_debug parameter to sched_verbose
config: arc-randconfig-r003-20210416 (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=a1b93fc0377e73dd54f819a993f83291324bb54a
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip sched/core
git checkout a1b93fc0377e73dd54f819a993f83291324bb54a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/sched/topology.c: In function 'sched_debug_setup':
>> kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
17 | sched_debug_verbose = true;
| ^~~~~~~~~~~~~~~~~~~
| sched_debug_setup
kernel/sched/topology.c:17:2: note: each undeclared identifier is reported only once for each function it appears in
kernel/sched/topology.c: In function 'sched_debug':
kernel/sched/topology.c:25:9: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
25 | return sched_debug_verbose;
| ^~~~~~~~~~~~~~~~~~~
| sched_debug_setup
kernel/sched/topology.c: In function 'sched_domain_debug':
kernel/sched/topology.c:134:7: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
134 | if (!sched_debug_verbose)
| ^~~~~~~~~~~~~~~~~~~
| sched_debug_setup
kernel/sched/topology.c: In function 'build_sched_domains':
kernel/sched/topology.c:2144:12: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
2144 | if (rq && sched_debug_verbose) {
| ^~~~~~~~~~~~~~~~~~~
| sched_debug_setup
In file included from include/linux/perf_event.h:25,
from include/linux/trace_events.h:10,
from include/trace/syscall.h:7,
from include/linux/syscalls.h:85,
from kernel/sched/sched.h:66,
from kernel/sched/topology.c:5:
At top level:
arch/arc/include/asm/perf_event.h:126:23: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=]
126 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
| ^~~~~~~~~~~~~~~~~
arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=]
91 | static const char * const arc_pmu_ev_hw_map[] = {
| ^~~~~~~~~~~~~~~~~
vim +17 kernel/sched/topology.c
14
15 static int __init sched_debug_setup(char *str)
16 {
> 17 sched_debug_verbose = true;
18
19 return 0;
20 }
21 early_param("sched_verbose", sched_debug_setup);
22
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32436 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [tip:sched/core 23/23] kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared; did you mean 'sched_debug_setup'?
2021-04-17 6:47 ` kernel test robot
@ 2021-04-17 9:06 ` Borislav Petkov
-1 siblings, 0 replies; 6+ messages in thread
From: Borislav Petkov @ 2021-04-17 9:06 UTC (permalink / raw)
To: kernel test robot; +Cc: Peter Zijlstra, kbuild-all, linux-kernel, x86
On Sat, Apr 17, 2021 at 02:47:46PM +0800, kernel test robot wrote:
> kernel/sched/topology.c: In function 'sched_debug_setup':
> >> kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
> 17 | sched_debug_verbose = true;
I guess it needs this:
---
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 55232db745ac..916bb96ff9a6 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -2364,6 +2364,7 @@ extern struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq);
#ifdef CONFIG_SCHED_DEBUG
extern bool sched_debug_enabled;
+extern bool sched_debug_verbose;
extern void print_cfs_stats(struct seq_file *m, int cpu);
extern void print_rt_stats(struct seq_file *m, int cpu);
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [tip:sched/core 23/23] kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared; did you mean 'sched_debug_setup'?
@ 2021-04-17 9:06 ` Borislav Petkov
0 siblings, 0 replies; 6+ messages in thread
From: Borislav Petkov @ 2021-04-17 9:06 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 910 bytes --]
On Sat, Apr 17, 2021 at 02:47:46PM +0800, kernel test robot wrote:
> kernel/sched/topology.c: In function 'sched_debug_setup':
> >> kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
> 17 | sched_debug_verbose = true;
I guess it needs this:
---
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 55232db745ac..916bb96ff9a6 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -2364,6 +2364,7 @@ extern struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq);
#ifdef CONFIG_SCHED_DEBUG
extern bool sched_debug_enabled;
+extern bool sched_debug_verbose;
extern void print_cfs_stats(struct seq_file *m, int cpu);
extern void print_rt_stats(struct seq_file *m, int cpu);
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [tip:sched/core 23/23] kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared; did you mean 'sched_debug_setup'?
2021-04-17 9:06 ` Borislav Petkov
@ 2021-04-17 11:42 ` Peter Zijlstra
-1 siblings, 0 replies; 6+ messages in thread
From: Peter Zijlstra @ 2021-04-17 11:42 UTC (permalink / raw)
To: Borislav Petkov; +Cc: kernel test robot, kbuild-all, linux-kernel, x86
On Sat, Apr 17, 2021 at 11:06:28AM +0200, Borislav Petkov wrote:
> On Sat, Apr 17, 2021 at 02:47:46PM +0800, kernel test robot wrote:
> > kernel/sched/topology.c: In function 'sched_debug_setup':
> > >> kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
> > 17 | sched_debug_verbose = true;
>
> I guess it needs this:
>
> ---
> diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
> index 55232db745ac..916bb96ff9a6 100644
> --- a/kernel/sched/sched.h
> +++ b/kernel/sched/sched.h
> @@ -2364,6 +2364,7 @@ extern struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq);
>
> #ifdef CONFIG_SCHED_DEBUG
> extern bool sched_debug_enabled;
> +extern bool sched_debug_verbose;
>
> extern void print_cfs_stats(struct seq_file *m, int cpu);
> extern void print_rt_stats(struct seq_file *m, int cpu);
>
Right, sorry for messing that up. Pushed out that commit with this
folded. If it gives any more trouble just kill the commit, it's the
topmost commit anyway.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [tip:sched/core 23/23] kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared; did you mean 'sched_debug_setup'?
@ 2021-04-17 11:42 ` Peter Zijlstra
0 siblings, 0 replies; 6+ messages in thread
From: Peter Zijlstra @ 2021-04-17 11:42 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1091 bytes --]
On Sat, Apr 17, 2021 at 11:06:28AM +0200, Borislav Petkov wrote:
> On Sat, Apr 17, 2021 at 02:47:46PM +0800, kernel test robot wrote:
> > kernel/sched/topology.c: In function 'sched_debug_setup':
> > >> kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared (first use in this function); did you mean 'sched_debug_setup'?
> > 17 | sched_debug_verbose = true;
>
> I guess it needs this:
>
> ---
> diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
> index 55232db745ac..916bb96ff9a6 100644
> --- a/kernel/sched/sched.h
> +++ b/kernel/sched/sched.h
> @@ -2364,6 +2364,7 @@ extern struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq);
>
> #ifdef CONFIG_SCHED_DEBUG
> extern bool sched_debug_enabled;
> +extern bool sched_debug_verbose;
>
> extern void print_cfs_stats(struct seq_file *m, int cpu);
> extern void print_rt_stats(struct seq_file *m, int cpu);
>
Right, sorry for messing that up. Pushed out that commit with this
folded. If it gives any more trouble just kill the commit, it's the
topmost commit anyway.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-04-17 11:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-17 6:47 [tip:sched/core 23/23] kernel/sched/topology.c:17:2: error: 'sched_debug_verbose' undeclared; did you mean 'sched_debug_setup'? kernel test robot
2021-04-17 6:47 ` kernel test robot
2021-04-17 9:06 ` Borislav Petkov
2021-04-17 9:06 ` Borislav Petkov
2021-04-17 11:42 ` Peter Zijlstra
2021-04-17 11:42 ` Peter Zijlstra
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.