All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pavel Begunkov <asml.silence@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [isilence:io_uring/get-buf-op 10/11] drivers/char/mem.c:704:34: sparse: sparse: incompatible types in comparison expression (different type sizes):
Date: Wed, 3 May 2023 21:48:22 +0800	[thread overview]
Message-ID: <202305032122.fYKyiZAk-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-05-03 13:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202305032122.fYKyiZAk-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=asml.silence@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.