[ceph-client:wip-fscrypt 8/64] net/ceph/messenger_v1.c:1019:49: 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: 2c136200054ea17849153ac4f55fe2abc99ee34e [8/64] libceph: add sparse read support to msgr1
config: arm64-buildonly-randconfig-r002-20220531 (https://download.01.org/0day-ci/archive/20220531/202205311559.ghi4Hs9C-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/2c136200054ea17849153ac4f55fe2abc99ee34e
        git remote add ceph-client https://github.com/ceph/ceph-client.git
        git fetch --no-tags ceph-client wip-fscrypt
        git checkout 2c136200054ea17849153ac4f55fe2abc99ee34e
        # 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/messenger_v1.c:1019:49: error: too many arguments to function call, expected 3, have 4
                   page = ceph_msg_data_next(cursor, &off, &len, NULL);
                          ~~~~~~~~~~~~~~~~~~                     ^~~~
   include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
   #define NULL ((void *)0)
                ^~~~~~~~~~~
   include/linux/ceph/messenger.h:531:14: note: 'ceph_msg_data_next' declared here
   struct page *ceph_msg_data_next(struct ceph_msg_data_cursor *cursor,
                ^
   1 error generated.


vim +1019 net/ceph/messenger_v1.c

  1000	
  1001	static int read_sparse_msg_extent(struct ceph_connection *con, u32 *crc)
  1002	{
  1003		struct ceph_msg_data_cursor *cursor = &con->in_msg->cursor;
  1004		bool do_bounce = ceph_test_opt(from_msgr(con->msgr), RXBOUNCE);
  1005	
  1006		if (do_bounce && unlikely(!con->bounce_page)) {
  1007			con->bounce_page = alloc_page(GFP_NOIO);
  1008			if (!con->bounce_page) {
  1009				pr_err("failed to allocate bounce page\n");
  1010				return -ENOMEM;
  1011			}
  1012		}
  1013	
  1014		while (cursor->sr_resid > 0) {
  1015			struct page *page, *rpage;
  1016			size_t off, len;
  1017			int ret;
  1018	
> 1019			page = ceph_msg_data_next(cursor, &off, &len, NULL);
  1020			rpage = do_bounce ? con->bounce_page : page;
  1021	
  1022			/* clamp to what remains in extent */
  1023			len = min_t(int, len, cursor->sr_resid);
  1024			ret = ceph_tcp_recvpage(con->sock, rpage, (int)off, len);
  1025			if (ret <= 0)
  1026				return ret;
  1027			*crc = ceph_crc32c_page(*crc, rpage, off, ret);
  1028			ceph_msg_data_advance(cursor, (size_t)ret);
  1029			cursor->sr_resid -= ret;
  1030			if (do_bounce)
  1031				memcpy_page(page, off, rpage, off, ret);
  1032		}
  1033		return 1;
  1034	}
  1035	

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