All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Chen, Rong A" <rong.a.chen@intel.com>
To: Peter Zijlstra <peterz@infradead.org>, kernel test robot <lkp@intel.com>
Cc: Yafang Shao <laoar.shao@gmail.com>,
	llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, x86@kernel.org
Subject: Re: [kbuild-all] Re: [tip:sched/core 14/47] kernel/sched/fair.c:893:22: error: variable 'p' set but not used
Date: Tue, 12 Oct 2021 22:31:01 +0800	[thread overview]
Message-ID: <40d464a8-86b6-d4cf-6e3a-d0712ac351c3@intel.com> (raw)
In-Reply-To: <YWVw/oVd5ztGZDAK@hirez.programming.kicks-ass.net>



On 10/12/2021 7:26 PM, Peter Zijlstra wrote:
> On Tue, Oct 12, 2021 at 11:57:41AM +0800, kernel test robot wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
>> head:   b2d5b9cec60fecc72a13191c2c6c05acf60975a5
>> commit: 60f2415e19d3948641149ac6aca137a7be1d1952 [14/47] sched: Make schedstats helpers independent of fair sched class
>> config: hexagon-buildonly-randconfig-r002-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=60f2415e19d3948641149ac6aca137a7be1d1952
>>          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 60f2415e19d3948641149ac6aca137a7be1d1952
>>          # 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/fair.c:860:28: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
>>                     struct sched_statistics *stats;
>>                                              ^
>>     kernel/sched/fair.c:892:27: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct sched_statistics *stats;
>>                                      ^
>>>> kernel/sched/fair.c:893:22: error: variable 'p' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct task_struct *p = NULL;
>>                                 ^
>>     kernel/sched/fair.c:910:22: error: variable 'p' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct task_struct *p = NULL;
>>                                 ^
>>     kernel/sched/fair.c:909:27: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct sched_statistics *stats;
>>                                      ^
>>>> kernel/sched/fair.c:936:22: error: variable 'tsk' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct task_struct *tsk = NULL;
>>                                 ^
>>     kernel/sched/fair.c:935:27: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct sched_statistics *stats;
>>                                      ^
>>     kernel/sched/fair.c:4451:28: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
>>                     struct sched_statistics *stats;
>>                                              ^
>>     8 errors generated.
> 
> Again, I have absolutely no intention of fixing this. IMO this is the
> compiler being a total pain in the arse.
> 
> Please stop reporting this.

Hi Peterz,

Sorry for the noise, we'll ignore the unused-but-set-variable warning in
kernel/sched/ part. Is there any other issue should be ignored?

Best Regards,
Rong Chen

WARNING: multiple messages have this Message-ID (diff)
From: Chen, Rong A <rong.a.chen@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [tip:sched/core 14/47] kernel/sched/fair.c:893:22: error: variable 'p' set but not used
Date: Tue, 12 Oct 2021 22:31:01 +0800	[thread overview]
Message-ID: <40d464a8-86b6-d4cf-6e3a-d0712ac351c3@intel.com> (raw)
In-Reply-To: <YWVw/oVd5ztGZDAK@hirez.programming.kicks-ass.net>

[-- Attachment #1: Type: text/plain, Size: 3411 bytes --]



On 10/12/2021 7:26 PM, Peter Zijlstra wrote:
> On Tue, Oct 12, 2021 at 11:57:41AM +0800, kernel test robot wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
>> head:   b2d5b9cec60fecc72a13191c2c6c05acf60975a5
>> commit: 60f2415e19d3948641149ac6aca137a7be1d1952 [14/47] sched: Make schedstats helpers independent of fair sched class
>> config: hexagon-buildonly-randconfig-r002-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=60f2415e19d3948641149ac6aca137a7be1d1952
>>          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 60f2415e19d3948641149ac6aca137a7be1d1952
>>          # 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/fair.c:860:28: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
>>                     struct sched_statistics *stats;
>>                                              ^
>>     kernel/sched/fair.c:892:27: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct sched_statistics *stats;
>>                                      ^
>>>> kernel/sched/fair.c:893:22: error: variable 'p' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct task_struct *p = NULL;
>>                                 ^
>>     kernel/sched/fair.c:910:22: error: variable 'p' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct task_struct *p = NULL;
>>                                 ^
>>     kernel/sched/fair.c:909:27: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct sched_statistics *stats;
>>                                      ^
>>>> kernel/sched/fair.c:936:22: error: variable 'tsk' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct task_struct *tsk = NULL;
>>                                 ^
>>     kernel/sched/fair.c:935:27: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
>>             struct sched_statistics *stats;
>>                                      ^
>>     kernel/sched/fair.c:4451:28: error: variable 'stats' set but not used [-Werror,-Wunused-but-set-variable]
>>                     struct sched_statistics *stats;
>>                                              ^
>>     8 errors generated.
> 
> Again, I have absolutely no intention of fixing this. IMO this is the
> compiler being a total pain in the arse.
> 
> Please stop reporting this.

Hi Peterz,

Sorry for the noise, we'll ignore the unused-but-set-variable warning in
kernel/sched/ part. Is there any other issue should be ignored?

Best Regards,
Rong Chen

  parent reply	other threads:[~2021-10-12 14:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-12  3:57 [tip:sched/core 14/47] kernel/sched/fair.c:893:22: error: variable 'p' set but not used kernel test robot
2021-10-12  3:57 ` kernel test robot
2021-10-12 11:26 ` Peter Zijlstra
2021-10-12 11:26   ` Peter Zijlstra
2021-10-12 13:35   ` Peter Zijlstra
2021-10-12 13:35     ` Peter Zijlstra
2021-10-13  6:18     ` Yafang Shao
2021-10-13  6:18       ` Yafang Shao
2021-10-14  4:23     ` Nathan Chancellor
2021-10-14  4:23       ` Nathan Chancellor
2021-10-14 15:08       ` Peter Zijlstra
2021-10-14 15:08         ` Peter Zijlstra
2021-10-15  9:45     ` [tip: sched/core] sched: Disable -Wunused-but-set-variable tip-bot2 for Peter Zijlstra
2021-10-12 14:31   ` Chen, Rong A [this message]
2021-10-12 14:31     ` [tip:sched/core 14/47] kernel/sched/fair.c:893:22: error: variable 'p' set but not used Chen, Rong A

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=40d464a8-86b6-d4cf-6e3a-d0712ac351c3@intel.com \
    --to=rong.a.chen@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=laoar.shao@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=peterz@infradead.org \
    --cc=x86@kernel.org \
    /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.