tree: git://git.infradead.org/users/hch/misc.git dax-support-cleanups head: 4b01cc047f5c0a9139340eaae24ec0b80f869396 commit: 306e4c90987837ad7874bc0bc89a55548df3b0a9 [2/9] dax: rename __bdev_dax_supported to bdev_dax_supported config: m68k-amiga_defconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 10.3.0 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 git remote add hch-misc git://git.infradead.org/users/hch/misc.git git fetch --no-tags hch-misc dax-support-cleanups git checkout 306e4c90987837ad7874bc0bc89a55548df3b0a9 # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/dax/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/dax/super.c:168:6: error: redefinition of 'bdev_dax_supported' 168 | bool bdev_dax_supported(struct block_device *bdev, int blocksize) | ^~~~~~~~~~~~~~~~~~ In file included from drivers/dax/super.c:16: include/linux/dax.h:179:20: note: previous definition of 'bdev_dax_supported' was here 179 | static inline bool bdev_dax_supported(struct block_device *bdev, | ^~~~~~~~~~~~~~~~~~ drivers/dax/super.c:449:6: warning: no previous prototype for 'run_dax' [-Wmissing-prototypes] 449 | void run_dax(struct dax_device *dax_dev) | ^~~~~~~ vim +/bdev_dax_supported +168 drivers/dax/super.c 157 158 /** 159 * bdev_dax_supported() - Check if the device supports dax for filesystem 160 * @bdev: block device to check 161 * @blocksize: The block size of the device 162 * 163 * This is a library function for filesystems to check if the block device 164 * can be mounted with dax option. 165 * 166 * Return: true if supported, false if unsupported 167 */ > 168 bool bdev_dax_supported(struct block_device *bdev, int blocksize) 169 { 170 struct dax_device *dax_dev; 171 struct request_queue *q; 172 bool ret; 173 int id; 174 175 q = bdev_get_queue(bdev); 176 if (!q || !blk_queue_dax(q)) { 177 pr_info("%pg: error: request queue doesn't support dax\n", bdev); 178 return false; 179 } 180 181 dax_dev = dax_get_by_host(bdev->bd_disk->disk_name); 182 if (!dax_dev) { 183 pr_info("%pg: error: device does not support dax\n", bdev); 184 return false; 185 } 186 187 id = dax_read_lock(); 188 ret = dax_supported(dax_dev, bdev, blocksize, 0, 189 i_size_read(bdev->bd_inode) / 512); 190 dax_read_unlock(id); 191 192 put_dax(dax_dev); 193 194 return ret; 195 } 196 EXPORT_SYMBOL_GPL(bdev_dax_supported); 197 #endif 198 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org