linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [hch-block:blkdev.h-includes 4/16] include/linux/genhd.h:335:12: error: unused function 'bd_register_pending_holders'
@ 2021-07-25  5:03 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-25  5:03 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: clang-built-linux, kbuild-all, linux-kernel

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

tree:   git://git.infradead.org/users/hch/block.git blkdev.h-includes
head:   48f7fda047613ceec07881f14a5eaf1ee19d4433
commit: cb48a9689b4fe34897d12d2e037b9f5094785832 [4/16] block: support delayed holder registration
config: arm-randconfig-r005-20210724 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 3f2c1e99e44d028d5e9dd685f3c568f2661f2f68)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        git remote add hch-block git://git.infradead.org/users/hch/block.git
        git fetch --no-tags hch-block blkdev.h-includes
        git checkout cb48a9689b4fe34897d12d2e037b9f5094785832
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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

   In file included from drivers/gpu/drm/tilcdc/tilcdc_plane.c:7:
   In file included from include/drm/drm_atomic.h:31:
   In file included from include/drm/drm_crtc.h:28:
   In file included from include/linux/i2c.h:18:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:22:
   In file included from include/linux/writeback.h:14:
   In file included from include/linux/blk-cgroup.h:23:
   In file included from include/linux/blkdev.h:8:
>> include/linux/genhd.h:335:12: error: unused function 'bd_register_pending_holders' [-Werror,-Wunused-function]
   static int bd_register_pending_holders(struct gendisk *disk)
              ^
   1 error generated.


vim +/bd_register_pending_holders +335 include/linux/genhd.h

   320	
   321	#ifdef CONFIG_BLOCK_HOLDER_DEPRECATED
   322	int bd_link_disk_holder(struct block_device *bdev, struct gendisk *disk);
   323	void bd_unlink_disk_holder(struct block_device *bdev, struct gendisk *disk);
   324	int bd_register_pending_holders(struct gendisk *disk);
   325	#else
   326	static inline int bd_link_disk_holder(struct block_device *bdev,
   327					      struct gendisk *disk)
   328	{
   329		return 0;
   330	}
   331	static inline void bd_unlink_disk_holder(struct block_device *bdev,
   332						 struct gendisk *disk)
   333	{
   334	}
 > 335	static int bd_register_pending_holders(struct gendisk *disk)
   336	{
   337		return 0;
   338	}
   339	#endif /* CONFIG_BLOCK_HOLDER_DEPRECATED */
   340	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39305 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-25  5:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-25  5:03 [hch-block:blkdev.h-includes 4/16] include/linux/genhd.h:335:12: error: unused function 'bd_register_pending_holders' kernel test robot

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