lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 12 Oct 2021 22:31:01 +0800
From:   "Chen, Rong A" <rong.a.chen@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>,
        kernel test robot <lkp@...el.com>
Cc:     Yafang Shao <laoar.shao@...il.com>, llvm@...ts.linux.dev,
        kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        x86@...nel.org
Subject: Re: [kbuild-all] Re: [tip:sched/core 14/47]
 kernel/sched/fair.c:893:22: error: variable 'p' set but not used



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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ