All of lore.kernel.org
 help / color / mirror / Atom feed
* [isilence:io_uring/get-buf-op 10/11] drivers/char/mem.c:704:34: sparse: sparse: incompatible types in comparison expression (different type sizes):
@ 2023-05-03 13:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-03 13:48 UTC (permalink / raw)
  To: Pavel Begunkov; +Cc: oe-kbuild-all

tree:   https://github.com/isilence/linux io_uring/get-buf-op
head:   d4d86a65af9ecafa81981e7b1ba804eaac7de023
commit: adf5ce0124b4b76a4ff143a16f598124e7116bad [10/11] TEST: mem: testing ->get_buf impl for /dev/null
config: parisc-randconfig-s051-20230430 (https://download.01.org/0day-ci/archive/20230503/202305032122.fYKyiZAk-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 12.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://github.com/isilence/linux/commit/adf5ce0124b4b76a4ff143a16f598124e7116bad
        git remote add isilence https://github.com/isilence/linux
        git fetch --no-tags isilence io_uring/get-buf-op
        git checkout adf5ce0124b4b76a4ff143a16f598124e7116bad
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc SHELL=/bin/bash drivers/char/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305032122.fYKyiZAk-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/char/mem.c:704:34: sparse: sparse: incompatible types in comparison expression (different type sizes):
>> drivers/char/mem.c:704:34: sparse:    unsigned int *
>> drivers/char/mem.c:704:34: sparse:    unsigned long *

vim +704 drivers/char/mem.c

   692	
   693	
   694	static int zero_get_buf(struct file *file, struct iou_get_buf_info *bi)
   695	{
   696		struct iou_buf_desc *d = bi->desc;
   697		size_t done = 0;
   698	
   699		if (bi->off)
   700			return -EINVAL;
   701	
   702	
   703		while (done != bi->len && d->nr_bvecs < d->max_bvecs) {
 > 704			size_t cur_len = min(bi->len - done, PAGE_SIZE);
   705	
   706			get_page(null_char_page);
   707			bvec_set_page(&d->bvec[d->nr_bvecs], null_char_page, cur_len, 0);
   708			d->nr_bvecs++;
   709			done += cur_len;
   710		}
   711	
   712		d->private = NULL;
   713		d->release = zero_get_buf_release;
   714		return done;
   715	}
   716	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-03 13:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-03 13:48 [isilence:io_uring/get-buf-op 10/11] drivers/char/mem.c:704:34: sparse: sparse: incompatible types in comparison expression (different type sizes): kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.