[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108200542.bAFbbNTi-lkp@intel.com>
Date: Fri, 20 Aug 2021 05:40:52 +0800
From: kernel test robot <lkp@...el.com>
To: Alexey Dobriyan <adobriyan@...il.com>
Cc: clang-built-linux@...glegroups.com, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Memory Management List <linux-mm@...ck.org>
Subject: samples/kfifo/bytestream-example.c:145:30: warning: unused variable
'fifo_proc_ops'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d6d09a6942050f21b065a134169002b4d6b701ef
commit: 97a32539b9568bb653683349e5a76d02ff3c3e2c proc: convert everything to "struct proc_ops"
date: 1 year, 7 months ago
config: x86_64-buildonly-randconfig-r001-20210819 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d2b574a4dea5b718e4386bf2e26af0126e5978ce)
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/torvalds/linux.git/commit/?id=97a32539b9568bb653683349e5a76d02ff3c3e2c
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 97a32539b9568bb653683349e5a76d02ff3c3e2c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> samples/kfifo/bytestream-example.c:145:30: warning: unused variable 'fifo_proc_ops' [-Wunused-const-variable]
static const struct proc_ops fifo_proc_ops = {
^
1 warning generated.
--
>> samples/kfifo/inttype-example.c:138:30: warning: unused variable 'fifo_proc_ops' [-Wunused-const-variable]
static const struct proc_ops fifo_proc_ops = {
^
1 warning generated.
--
>> samples/kfifo/record-example.c:152:30: warning: unused variable 'fifo_proc_ops' [-Wunused-const-variable]
static const struct proc_ops fifo_proc_ops = {
^
1 warning generated.
vim +/fifo_proc_ops +145 samples/kfifo/bytestream-example.c
144
> 145 static const struct proc_ops fifo_proc_ops = {
146 .proc_read = fifo_read,
147 .proc_write = fifo_write,
148 .proc_lseek = noop_llseek,
149 };
150
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (30257 bytes)
Powered by blists - more mailing lists