samples/kfifo/bytestream-example.c:145:30: warning: unused variable 'fifo_proc_ops'
From: kernel test robot <hidden>
Date: 2021-08-19 21:41:44
Also in:
lkml, oe-kbuild-all
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 <redacted> All warnings (new ones prefixed by >>):
quoted
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.
--quoted
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.
--quoted
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 Attachments
- .config.gz [application/gzip] 30257 bytes