On Mon, Jul 27, 2020 at 11:02:07PM +0800, kernel test robot wrote: > Hi David, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 92ed301919932f777713b9172e525674157e983d > commit: f7cea56c0fff95bd5a6cd21b9fa299f66193b604 btrfs: sysfs: export > supported checksums > date: 8 months ago > config: h8300-randconfig-r021-20200727 (attached as .config) > compiler: h8300-linux-gcc (GCC) 9.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 checkout f7cea56c0fff95bd5a6cd21b9fa299f66193b604 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross > ARCH=h8300 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot <l...@intel.com> > > All warnings (new ones prefixed by >>): > > In file included from fs/btrfs/tests/extent-map-tests.c:8: > >> fs/btrfs/tests/../ctree.h:2166:8: warning: type qualifiers ignored on > >> function return type [-Wignored-qualifiers] > 2166 | size_t __const btrfs_get_num_csums(void); > | ^~~~~~~
Ah right, the attribute is supposed to be __attribute_const__, thanks for the report.