[ceph-client:wip-fscrypt 6/64] net/ceph/osd_client.c:5702:51: error: too many arguments to function call, expected 3, have 4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://github.com/ceph/ceph-client.git wip-fscrypt
head:   4a13fcc148c64143afe231bd0cae743b89c70177
commit: 0614a83e4f104460d5bdb8ba414ab69b8fdbdb39 [6/64] libceph: add sparse read support to OSD client
config: arm64-buildonly-randconfig-r002-20220531 (https://download.01.org/0day-ci/archive/20220531/202205311337.ZFkD1cPR-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c825abd6b0198fb088d9752f556a70705bc99dfd)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/ceph/ceph-client/commit/0614a83e4f104460d5bdb8ba414ab69b8fdbdb39
        git remote add ceph-client https://github.com/ceph/ceph-client.git
        git fetch --no-tags ceph-client wip-fscrypt
        git checkout 0614a83e4f104460d5bdb8ba414ab69b8fdbdb39
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash net/ceph/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> net/ceph/osd_client.c:5702:51: error: too many arguments to function call, expected 3, have 4
                   page = ceph_msg_data_next(cursor, &poff, &plen, &last);
                          ~~~~~~~~~~~~~~~~~~                       ^~~~~
   include/linux/ceph/messenger.h:527:14: note: 'ceph_msg_data_next' declared here
   struct page *ceph_msg_data_next(struct ceph_msg_data_cursor *cursor,
                ^
   1 error generated.


vim +5702 net/ceph/osd_client.c

  5694	
  5695	static void advance_cursor(struct ceph_msg_data_cursor *cursor, size_t len, bool zero)
  5696	{
  5697		while (len) {
  5698			struct page *page;
  5699			size_t poff, plen;
  5700			bool last = false;
  5701	
> 5702			page = ceph_msg_data_next(cursor, &poff, &plen, &last);
  5703			if (plen > len)
  5704				plen = len;
  5705			if (zero)
  5706				zero_user_segment(page, poff, poff + plen);
  5707			len -= plen;
  5708			ceph_msg_data_advance(cursor, plen);
  5709		}
  5710	}
  5711	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Ceph Dev]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux