tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/cifs-for-viro head: df803766d7a8e3e9214c3efd185bf31a1d8fcd46 commit: ff68c55b665d0fa71aad17350b20049383776139 [6/12] cifs: Add a function to build an RDMA SGE list from an iterator config: arm64-allyesconfig compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 463da45892e2d2a262277b91b96f5f8c05dc25d0) 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/ammarfaizi2/linux-block/commit/ff68c55b665d0fa71aad17350b20049383776139 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/cifs-for-viro git checkout ff68c55b665d0fa71aad17350b20049383776139 # 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 drivers/iio/frequency/ fs/cifs/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> fs/cifs/smbdirect.c:2655:3: warning: variable 'ret' is uninitialized when used here [-Wuninitialized] ret += len; ^~~ fs/cifs/smbdirect.c:2631:13: note: initialize the variable 'ret' to silence this warning ssize_t ret; ^ = 0 fs/cifs/smbdirect.c:2675:16: warning: unused function 'smb_extract_iter_to_rdma' [-Wunused-function] static ssize_t smb_extract_iter_to_rdma(struct iov_iter *iter, size_t len, ^ 2 warnings generated. vim +/ret +2655 fs/cifs/smbdirect.c 2617 2618 /* 2619 * Extract folio fragments from an XARRAY-class iterator and add them to an 2620 * RDMA list. The folios are not pinned. 2621 */ 2622 static ssize_t smb_extract_xarray_to_rdma(struct iov_iter *iter, 2623 struct smb_extract_to_rdma *rdma, 2624 ssize_t maxsize) 2625 { 2626 struct xarray *xa = iter->xarray; 2627 struct folio *folio; 2628 unsigned int sge_max = rdma->max_sge; 2629 loff_t start = iter->xarray_start + iter->iov_offset; 2630 pgoff_t index = start / PAGE_SIZE; 2631 ssize_t ret; 2632 size_t off, len; 2633 XA_STATE(xas, xa, index); 2634 2635 rcu_read_lock(); 2636 2637 xas_for_each(&xas, folio, ULONG_MAX) { 2638 if (xas_retry(&xas, folio)) 2639 continue; 2640 if (WARN_ON(xa_is_value(folio))) 2641 break; 2642 if (WARN_ON(folio_test_hugetlb(folio))) 2643 break; 2644 2645 off = offset_in_folio(folio, start); 2646 len = min_t(size_t, maxsize, folio_size(folio) - off); 2647 2648 if (!smb_set_sge(rdma, folio_page(folio, 0), off, len)) { 2649 rcu_read_lock(); 2650 return -EIO; 2651 } 2652 sge_max--; 2653 2654 maxsize -= len; > 2655 ret += len; 2656 if (maxsize <= 0 || sge_max == 0) 2657 break; 2658 } 2659 2660 rcu_read_unlock(); 2661 return ret; 2662 } 2663 -- 0-DAY CI Kernel Test Service https://01.org/lkp