All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christopher Taylor <ctaylor@tactcomplabs.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Subject: [cornelisnetworks:pr/1 1/1] drivers/infiniband/sw/rdmavt/qp.c:107:50: error: too many arguments to function call, expected 3, have 4
Date: Sun, 10 Nov 2024 02:26:09 +0800	[thread overview]
Message-ID: <202411100235.doMAci33-lkp@intel.com> (raw)

tree:   https://github.com/cornelisnetworks/linux.git pr/1
head:   6f9ce1f156a4d597e2e447443a2655fb0b288337
commit: 6f9ce1f156a4d597e2e447443a2655fb0b288337 [1/1] initial import
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20241110/202411100235.doMAci33-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241110/202411100235.doMAci33-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411100235.doMAci33-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/infiniband/sw/rdmavt/qp.c:13:
   In file included from include/rdma/ib_verbs.h:15:
   In file included from include/linux/ethtool.h:18:
   In file included from include/linux/if_ether.h:19:
   In file included from include/linux/skbuff.h:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:8:
   In file included from include/linux/cacheflush.h:5:
   In file included from arch/x86/include/asm/cacheflush.h:5:
   In file included from include/linux/mm.h:2213:
   include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     504 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     505 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     511 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     512 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     524 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     525 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/infiniband/sw/rdmavt/qp.c:107:50: error: too many arguments to function call, expected 3, have 4
     107 |         __copy_user_nocache(dst, (void __user *)src, n, 0);
         |         ~~~~~~~~~~~~~~~~~~~                             ^
   arch/x86/include/asm/uaccess_64.h:150:13: note: '__copy_user_nocache' declared here
     150 | extern long __copy_user_nocache(void *dst, const void __user *src, unsigned size);
         |             ^                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   4 warnings and 1 error generated.


vim +107 drivers/infiniband/sw/rdmavt/qp.c

    96	
    97	/* platform specific: cacheless copy */
    98	static void cacheless_memcpy(void *dst, void *src, size_t n)
    99	{
   100	#if defined(CONFIG_X86_64)
   101		/*
   102		 * Use the only available X64 cacheless copy.  Add a __user cast
   103		 * to quiet sparse.  The src agument is already in the kernel so
   104		 * there are no security issues.  The extra fault recovery machinery
   105		 * is not invoked.
   106		 */
 > 107		__copy_user_nocache(dst, (void __user *)src, n, 0);
   108	#endif
   109	}
   110	

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

                 reply	other threads:[~2024-11-09 18:26 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=202411100235.doMAci33-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ctaylor@tactcomplabs.com \
    --cc=dennis.dalessandro@cornelisnetworks.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.