linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/block/zram/zram_drv.c:1824:45: warning: unused variable 'zram_wb_devops'
@ 2021-11-26  8:54 kernel test robot
  2021-11-26 17:00 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-11-26  8:54 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: llvm, kbuild-all, linux-kernel, Jens Axboe, Jan Kara, Johannes Thumshirn

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a4849f6000e29235a2707f22e39da6b897bb9543
commit: a8b456d01cd6b37191f14248f3e2bdbe5ce3a89e bdi: remove BDI_CAP_SYNCHRONOUS_IO
date:   1 year, 2 months ago
config: x86_64-buildonly-randconfig-r003-20211116 (https://download.01.org/0day-ci/archive/20211126/202111261614.gCJMqcyh-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
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=a8b456d01cd6b37191f14248f3e2bdbe5ce3a89e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a8b456d01cd6b37191f14248f3e2bdbe5ce3a89e
        # save the config file to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/block/zram/zram_drv.c:1824:45: warning: unused variable 'zram_wb_devops' [-Wunused-const-variable]
   static const struct block_device_operations zram_wb_devops = {
                                               ^
   1 warning generated.


vim +/zram_wb_devops +1824 drivers/block/zram/zram_drv.c

  1823	
> 1824	static const struct block_device_operations zram_wb_devops = {
  1825		.open = zram_open,
  1826		.submit_bio = zram_submit_bio,
  1827		.swap_slot_free_notify = zram_slot_free_notify,
  1828		.owner = THIS_MODULE
  1829	};
  1830	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: drivers/block/zram/zram_drv.c:1824:45: warning: unused variable 'zram_wb_devops'
  2021-11-26  8:54 drivers/block/zram/zram_drv.c:1824:45: warning: unused variable 'zram_wb_devops' kernel test robot
@ 2021-11-26 17:00 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-11-26 17:00 UTC (permalink / raw)
  To: kernel test robot, Christoph Hellwig
  Cc: llvm, kbuild-all, linux-kernel, Jan Kara, Johannes Thumshirn

On 11/26/21 1:54 AM, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   a4849f6000e29235a2707f22e39da6b897bb9543
> commit: a8b456d01cd6b37191f14248f3e2bdbe5ce3a89e bdi: remove BDI_CAP_SYNCHRONOUS_IO
> date:   1 year, 2 months ago
> config: x86_64-buildonly-randconfig-r003-20211116 (https://download.01.org/0day-ci/archive/20211126/202111261614.gCJMqcyh-lkp@intel.com/config)
> compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
> 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=a8b456d01cd6b37191f14248f3e2bdbe5ce3a89e
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout a8b456d01cd6b37191f14248f3e2bdbe5ce3a89e
>         # save the config file to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All warnings (new ones prefixed by >>):
> 
>>> drivers/block/zram/zram_drv.c:1824:45: warning: unused variable 'zram_wb_devops' [-Wunused-const-variable]
>    static const struct block_device_operations zram_wb_devops = {
>                                                ^
>    1 warning generated.

https://git.kernel.dk/cgit/linux-block/commit/?h=block-5.16&id=d422f40163087408b56290156ba233fc5ada53e4

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-26 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26  8:54 drivers/block/zram/zram_drv.c:1824:45: warning: unused variable 'zram_wb_devops' kernel test robot
2021-11-26 17:00 ` Jens Axboe

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).