tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/cifs-for-viro head: 36501a16f9488b5e40c3649db6c72ad356a4b861 commit: df3dc5b0ba08782bc1dd331928e61ec81f841942 [6/13] cifs: Implement splice_read to pass down ITER_BVEC not ITER_PIPE config: i386-randconfig-s003 compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/ammarfaizi2/linux-block/commit/df3dc5b0ba08782bc1dd331928e61ec81f841942 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 df3dc5b0ba08782bc1dd331928e61ec81f841942 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> fs/cifs/file.c:5282:15: sparse: sparse: incompatible types in comparison expression (different type sizes): >> fs/cifs/file.c:5282:15: sparse: unsigned int * >> fs/cifs/file.c:5282:15: sparse: unsigned long * fs/cifs/file.c:5295:24: sparse: sparse: incompatible types in comparison expression (different type sizes): fs/cifs/file.c:5295:24: sparse: unsigned int * fs/cifs/file.c:5295:24: sparse: unsigned long * fs/cifs/file.c:5298:25: sparse: sparse: incompatible types in comparison expression (different type sizes): fs/cifs/file.c:5298:25: sparse: unsigned long * fs/cifs/file.c:5298:25: sparse: unsigned int * fs/cifs/file.c:5338:25: sparse: sparse: incompatible types in comparison expression (different type sizes): fs/cifs/file.c:5338:25: sparse: unsigned int * fs/cifs/file.c:5338:25: sparse: unsigned long * vim +5282 fs/cifs/file.c 5261 5262 /* 5263 * Splice data from a file into a pipe. 5264 */ 5265 ssize_t cifs_splice_read(struct file *file, loff_t *ppos, 5266 struct pipe_inode_info *pipe, size_t len, 5267 unsigned int flags) 5268 { 5269 LIST_HEAD(pages); 5270 struct iov_iter to; 5271 struct bio_vec *bv; 5272 struct kiocb kiocb; 5273 struct page *page; 5274 unsigned int head; 5275 ssize_t ret; 5276 size_t used, npages, chunk, remain, reclaim; 5277 int i; 5278 5279 /* Work out how much data we can actually add into the pipe */ 5280 used = pipe_occupancy(pipe->head, pipe->tail); 5281 npages = max_t(ssize_t, pipe->max_usage - used, 0); > 5282 len = min(len, npages * PAGE_SIZE); -- 0-DAY CI Kernel Test Service https://01.org/lkp