LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [tip:sched/core 45/47] kernel/sched/topology.c:23:20: error: unused function 'sched_debug'
@ 2021-10-12 18:30 kernel test robot
2021-10-13 9:02 ` Yicong Yang
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2021-10-12 18:30 UTC (permalink / raw)
To: Yicong Yang
Cc: llvm, kbuild-all, linux-kernel, x86, Barry Song, Valentin Schneider
[-- Attachment #1: Type: text/plain, Size: 2180 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
head: b2d5b9cec60fecc72a13191c2c6c05acf60975a5
commit: f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d [45/47] sched/topology: Remove unused numa_distance in cpu_attach_domain()
config: hexagon-buildonly-randconfig-r004-20211012 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dcf39554dbea780d6cb7e12239451ba47a2668)
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=f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d
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 f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
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:23:20: error: unused function 'sched_debug' [-Werror,-Wunused-function]
static inline bool sched_debug(void)
^
1 error generated.
vim +/sched_debug +23 kernel/sched/topology.c
f2cb13609d5397 Ingo Molnar 2017-02-01 22
f2cb13609d5397 Ingo Molnar 2017-02-01 @23 static inline bool sched_debug(void)
f2cb13609d5397 Ingo Molnar 2017-02-01 24 {
9406415f46f612 Peter Zijlstra 2021-04-15 25 return sched_debug_verbose;
f2cb13609d5397 Ingo Molnar 2017-02-01 26 }
f2cb13609d5397 Ingo Molnar 2017-02-01 27
:::::: The code at line 23 was first introduced by commit
:::::: f2cb13609d5397cdd747f3ed6fb651233851717d sched/topology: Split out scheduler topology code from core.c into topology.c
:::::: TO: Ingo Molnar <mingo@kernel.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>
---
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: 36144 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [tip:sched/core 45/47] kernel/sched/topology.c:23:20: error: unused function 'sched_debug'
2021-10-12 18:30 [tip:sched/core 45/47] kernel/sched/topology.c:23:20: error: unused function 'sched_debug' kernel test robot
@ 2021-10-13 9:02 ` Yicong Yang
2021-10-13 9:16 ` [kbuild-all] " Philip Li
0 siblings, 1 reply; 3+ messages in thread
From: Yicong Yang @ 2021-10-13 9:02 UTC (permalink / raw)
To: kernel test robot
Cc: yangyicong, llvm, kbuild-all, linux-kernel, x86, Barry Song,
Valentin Schneider
Hi,
On 2021/10/13 2:30, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
> head: b2d5b9cec60fecc72a13191c2c6c05acf60975a5
> commit: f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d [45/47] sched/topology: Remove unused numa_distance in cpu_attach_domain()
> config: hexagon-buildonly-randconfig-r004-20211012 (attached as .config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dcf39554dbea780d6cb7e12239451ba47a2668)
> 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=f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d
> 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 f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
>
> 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:23:20: error: unused function 'sched_debug' [-Werror,-Wunused-function]
> static inline bool sched_debug(void)
> ^
> 1 error generated.
>
sched_debug() is unused if CONFIG_ENERGY_MODEL=n || CONFIG_CPU_FREQ_GOV_SCHEDUTIL=n and CONFIG_NUMA=n,
which is the case in the report. This is not introduced by this patch.
A __maybe_unused qualify for sched_debug() may fix this. Not sure we intends to do so.
>
> vim +/sched_debug +23 kernel/sched/topology.c
>
> f2cb13609d5397 Ingo Molnar 2017-02-01 22
> f2cb13609d5397 Ingo Molnar 2017-02-01 @23 static inline bool sched_debug(void)
> f2cb13609d5397 Ingo Molnar 2017-02-01 24 {
> 9406415f46f612 Peter Zijlstra 2021-04-15 25 return sched_debug_verbose;
> f2cb13609d5397 Ingo Molnar 2017-02-01 26 }
> f2cb13609d5397 Ingo Molnar 2017-02-01 27
>
> :::::: The code at line 23 was first introduced by commit
> :::::: f2cb13609d5397cdd747f3ed6fb651233851717d sched/topology: Split out scheduler topology code from core.c into topology.c
>
> :::::: TO: Ingo Molnar <mingo@kernel.org>
> :::::: CC: Ingo Molnar <mingo@kernel.org>
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [kbuild-all] Re: [tip:sched/core 45/47] kernel/sched/topology.c:23:20: error: unused function 'sched_debug'
2021-10-13 9:02 ` Yicong Yang
@ 2021-10-13 9:16 ` Philip Li
0 siblings, 0 replies; 3+ messages in thread
From: Philip Li @ 2021-10-13 9:16 UTC (permalink / raw)
To: Yicong Yang
Cc: kernel test robot, llvm, kbuild-all, linux-kernel, x86,
Barry Song, Valentin Schneider
On Wed, Oct 13, 2021 at 05:02:42PM +0800, Yicong Yang wrote:
> Hi,
>
> On 2021/10/13 2:30, kernel test robot wrote:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
> > head: b2d5b9cec60fecc72a13191c2c6c05acf60975a5
> > commit: f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d [45/47] sched/topology: Remove unused numa_distance in cpu_attach_domain()
> > config: hexagon-buildonly-randconfig-r004-20211012 (attached as .config)
> > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dcf39554dbea780d6cb7e12239451ba47a2668)
> > 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=f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d
> > 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 f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d
> > # save the attached .config to linux build tree
> > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
> >
> > 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:23:20: error: unused function 'sched_debug' [-Werror,-Wunused-function]
> > static inline bool sched_debug(void)
> > ^
> > 1 error generated.
> >
>
> sched_debug() is unused if CONFIG_ENERGY_MODEL=n || CONFIG_CPU_FREQ_GOV_SCHEDUTIL=n and CONFIG_NUMA=n,
> which is the case in the report. This is not introduced by this patch.
>
> A __maybe_unused qualify for sched_debug() may fix this. Not sure we intends to do so.
Hi Yicong, you may wait for Peter's input. 0-day CI is consulting Peter what the appropriate
scope is to ignore the W=1 related warnings at
https://lore.kernel.org/llvm/CALOAHbDkBn3LDsNvSXujMiQXrLHdRsfvJUqJv_eTh4s63osuTw@mail.gmail.com/T/#m516619d3b8b632e457522ef7827694f9b47c574c
We will not reporting out such un-interested issues anymore per the input.
>
> >
> > vim +/sched_debug +23 kernel/sched/topology.c
> >
> > f2cb13609d5397 Ingo Molnar 2017-02-01 22
> > f2cb13609d5397 Ingo Molnar 2017-02-01 @23 static inline bool sched_debug(void)
> > f2cb13609d5397 Ingo Molnar 2017-02-01 24 {
> > 9406415f46f612 Peter Zijlstra 2021-04-15 25 return sched_debug_verbose;
> > f2cb13609d5397 Ingo Molnar 2017-02-01 26 }
> > f2cb13609d5397 Ingo Molnar 2017-02-01 27
> >
> > :::::: The code at line 23 was first introduced by commit
> > :::::: f2cb13609d5397cdd747f3ed6fb651233851717d sched/topology: Split out scheduler topology code from core.c into topology.c
> >
> > :::::: TO: Ingo Molnar <mingo@kernel.org>
> > :::::: CC: Ingo Molnar <mingo@kernel.org>
> >
> > ---
> > 0-DAY CI Kernel Test Service, Intel Corporation
> > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
> >
> _______________________________________________
> kbuild-all mailing list -- kbuild-all@lists.01.org
> To unsubscribe send an email to kbuild-all-leave@lists.01.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-10-13 9:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12 18:30 [tip:sched/core 45/47] kernel/sched/topology.c:23:20: error: unused function 'sched_debug' kernel test robot
2021-10-13 9:02 ` Yicong Yang
2021-10-13 9:16 ` [kbuild-all] " Philip Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).