tree:
git://git.infradead.org/users/hch/misc.git dax-block-cleanup
head: f95e4c72e7784a68edcdb95f4211b9636880ff29
commit: f95e4c72e7784a68edcdb95f4211b9636880ff29 [3/3] dax: rework the dax_device
<-> gendisk association
config: hexagon-randconfig-r041-20211014 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
acb3b187c4c88650a6a717a1bcb234d27d0d7f54)
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-block-cleanup
git checkout f95e4c72e7784a68edcdb95f4211b9636880ff29
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from fs/erofs/super.c:14:
> include/linux/dax.h:133:67: warning: declaration of 'struct
gendisk' will not be visible outside of this function [-Wvisibility]
static
inline int dax_add_host(struct dax_device *dax_dev, struct gendisk *disk)
^
include/linux/dax.h:137:29: warning: declaration of 'struct gendisk' will not
be visible outside of this function [-Wvisibility]
void dax_remove_host(struct gendisk *disk)
^
> include/linux/dax.h:137:6: warning: no previous prototype for
function 'dax_remove_host' [-Wmissing-prototypes]
void
dax_remove_host(struct gendisk *disk)
^
include/linux/dax.h:137:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
void dax_remove_host(struct gendisk *disk)
^
static
3 warnings generated.
--
In file included from fs/erofs/data.c:9:
> include/linux/dax.h:137:6: warning: no previous prototype for
function 'dax_remove_host' [-Wmissing-prototypes]
void
dax_remove_host(struct gendisk *disk)
^
include/linux/dax.h:137:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
void dax_remove_host(struct gendisk *disk)
^
static
1 warning generated.
vim +133 include/linux/dax.h
123
124 struct dax_device *fs_dax_get_by_bdev(struct block_device *bdev);
125 int dax_writeback_mapping_range(struct address_space *mapping,
126 struct dax_device *dax_dev, struct writeback_control *wbc);
127
128 struct page *dax_layout_busy_page(struct address_space *mapping);
129 struct page *dax_layout_busy_page_range(struct address_space *mapping, loff_t
start, loff_t end);
130 dax_entry_t dax_lock_page(struct page *page);
131 void dax_unlock_page(struct page *page, dax_entry_t cookie);
132 #else
133 static inline int dax_add_host(struct dax_device *dax_dev, struct
gendisk *disk)
134 {
135 return 0;
136 }
137 void dax_remove_host(struct gendisk *disk)
138 {
139 }
140 #define generic_fsdax_supported NULL
141
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org